\SeedDMS_Core_Workflow_Transition

Class to represent a workflow transition in the document management system

Summary

Methods
Properties
Constants
SeedDMS_Core_Workflow_Transition()
setDMS()
getID()
getWorkflow()
setWorkflow()
getState()
setState()
getNextState()
setNextState()
getAction()
setAction()
getMaxTime()
setMaxTime()
getUsers()
getGroups()
remove()
$_id
$_workflow
$_state
$_nextstate
$_action
$_maxtime
$_users
$_groups
$_dms
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$_id

$_id : integer

Type

integer — id of workflow transition

$_workflow

$_workflow : \workflow

Type

\workflow — this transition belongs to

$_state

$_state : \state

Type

\state — of the workflow transition

$_nextstate

$_nextstate : \next

Type

\next — state of the workflow transition

$_action

$_action : \action

Type

\action — of the workflow transition

$_maxtime

$_maxtime : \maximum

Type

\maximum — of seconds allowed until this transition must be triggered

$_users

$_users : \list

Type

\list — of users allowed to trigger this transaction

$_groups

$_groups : \list

Type

\list — of groups allowed to trigger this transaction

$_dms

$_dms : object

Type

object — reference to the dms instance this attribute belongs to

Methods

SeedDMS_Core_Workflow_Transition()

SeedDMS_Core_Workflow_Transition( $id,  $workflow,  $state,  $action,  $nextstate,  $maxtime)

Parameters

$id
$workflow
$state
$action
$nextstate
$maxtime

setDMS()

setDMS( $dms)

Parameters

$dms

getID()

getID()

getWorkflow()

getWorkflow()

setWorkflow()

setWorkflow( $newWorkflow)

Parameters

$newWorkflow

getState()

getState()

setState()

setState( $newState)

Parameters

$newState

getNextState()

getNextState()

setNextState()

setNextState( $newNextState)

Parameters

$newNextState

getAction()

getAction()

setAction()

setAction( $newAction)

Parameters

$newAction

getMaxTime()

getMaxTime()

setMaxTime()

setMaxTime( $maxtime)

Parameters

$maxtime

getUsers()

getUsers() : array

Get all users allowed to trigger this transition

Returns

array —

list of users

getGroups()

getGroups() : array

Get all users allowed to trigger this transition

Returns

array —

list of users

remove()

remove() : boolean

Remove the workflow transition

Returns

boolean —

true on success or false in case of an error

    false is also returned if the workflow action is currently in use