Documentation

SeedDMS_Core_Workflow_State
in package

Class to represent a workflow state in the document management system

Tags
category

DMS

author

Markus Westphal, Malcolm Cowe, Uwe Steinmann uwe@steinmann.cx

copyright

Copyright (C) 2012-2024 Uwe Steinmann

version

Release: @package_version@

Table of Contents

Properties

$_dms  : SeedDMS_Core_DMS
$_documentstatus  : int
$_id  : int
$_maxtime  : int
$_name  : string
$_precondfunc  : int

Methods

__construct()  : mixed
SeedDMS_Core_Workflow_State constructor.
getDocumentStatus()  : int
Get the document status which is set when this state is reached
getID()  : int
getMaxTime()  : int
getName()  : string
getPreCondFunc()  : int
getTransitions()  : array<string|int, SeedDMS_Core_Workflow_Transition>|bool
Return workflow transitions the status is being used in
isUsed()  : bool
Check if workflow state is currently used by any workflow transition
remove()  : bool
Remove the workflow state
setDMS()  : mixed
setDocumentStatus()  : bool
setMaxTime()  : bool
setName()  : bool
setPreCondFunc()  : bool

Properties

$_documentstatus

public int $_documentstatus

matching documentstatus when this state is reached

Tags
access

protected

$_maxtime

public int $_maxtime

maximum of seconds allowed in this state

Tags
access

protected

$_name

public string $_name

name of the workflow state

Tags
access

protected

$_precondfunc

public int $_precondfunc

maximum of seconds allowed in this state

Tags
access

protected

Methods

__construct()

SeedDMS_Core_Workflow_State constructor.

public __construct( $id,  $name,  $maxtime,  $precondfunc,  $documentstatus) : mixed
Parameters
$id :
$name :
$maxtime :
$precondfunc :
$documentstatus :

getDocumentStatus()

Get the document status which is set when this state is reached

public getDocumentStatus() : int

The document status uses the define states S_REJECTED and S_RELEASED Only those two states will update the document status

Return values
int

document status

getPreCondFunc()

public getPreCondFunc() : int
Return values
int

maximum

isUsed()

Check if workflow state is currently used by any workflow transition

public isUsed() : bool
Return values
bool

true if workflow is used, otherwise false

remove()

Remove the workflow state

public remove() : bool
Return values
bool

true on success or false in case of an error false is also returned if the workflow state is currently in use

setDocumentStatus()

public setDocumentStatus( $docstatus) : bool
Parameters
$docstatus :
Return values
bool

setMaxTime()

public setMaxTime( $maxtime) : bool
Parameters
$maxtime :
Return values
bool

setName()

public setName(string $newName) : bool
Parameters
$newName : string
Return values
bool

setPreCondFunc()

public setPreCondFunc( $precondfunc) : bool
Parameters
$precondfunc :
Return values
bool
Loading…
On this page

Search results