eZ Publish  [trunk]
eZWorkflowProcess Class Reference
+ Inheritance diagram for eZWorkflowProcess:
+ Collaboration diagram for eZWorkflowProcess:

List of all members.

Public Member Functions

 advance ($next_event_id=0, $next_event_pos=0, $status=0)
 advanceToNext ()
 content ()
 currentEvent ()
 eZWorkflowProcess ($row)
 lastWorkflowEvent ()
 node ()
 parameterList ()
 removeThis ()
 reset ()
 run (&$workflow, &$workflowEvent, &$eventLog)
 setParameters ($parameterList=null)
 user ()
 workflow ()
 workflowEvent ()

Static Public Member Functions

 cleanup ()
static create ($processKey, $parameters)
static createKey ($parameters, $keys=null)
static definition ()
 Returns the definition for the object, the default implementation is to return an empty array.
static fetch ($id, $asObject=true)
static fetchForContent ($workflowID, $userID, $contentID, $contentVersion, $nodeID, $asObject=true)
static fetchForSession ($sessionKey, $workflowID, $asObject=true)
static fetchForStatus ($status=eZWorkflow::STATUS_DEFERRED_TO_CRON, $asObject=true)
static fetchList ($conds=null, $asObject=true, $offset=false, $limit=false)
static fetchListByKey ($searchKey, $asObject=true)
static fetchUserList ($userID, $asObject=true)

Public Attributes

 $ActivationDate
 $ContentID
 $Created
 $EventID
 $EventPosition
 $EventStatus
 $ID
 $LastEventID
 $LastEventPosition
 $LastEventStatus
 $Modified
 $NodeID
 $UserID
 $WorkflowID

Detailed Description

Definition at line 17 of file ezworkflowprocess.php.


Member Function Documentation

eZWorkflowProcess::advance ( next_event_id = 0,
next_event_pos = 0,
status = 0 
)

Definition at line 169 of file ezworkflowprocess.php.

Referenced by run().

Removes all workflow processes from database.

Note:
Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.

Definition at line 651 of file ezworkflowprocess.php.

Definition at line 566 of file ezworkflowprocess.php.

static eZWorkflowProcess::create ( processKey,
parameters 
) [static]

Definition at line 133 of file ezworkflowprocess.php.

Referenced by eZMultiplexerType\execute(), and eZTrigger\runTrigger().

static eZWorkflowProcess::createKey ( parameters,
keys = null 
) [static]

Definition at line 453 of file ezworkflowprocess.php.

Referenced by eZMultiplexerType\execute(), and eZTrigger\runTrigger().

static eZWorkflowProcess::definition ( ) [static]

Returns the definition for the object, the default implementation is to return an empty array.

It's upto each inheriting class to return a proper definition array.

The definition array is an associative array consists of these keys:

  • fields: an associative array of fields which defines which database field (the key) is to fetched and how they map to object member variables (the value).
  • keys: an array of fields which is used for uniquely identifying the object in the table.
  • function_attributes: an associative array of attributes which maps to member functions, used for fetching data with functions.
  • set_functions: an associative array of attributes which maps to member functions, used for setting data with functions.
  • increment_key: the field which is incremented on table inserts.
  • class_name: the classname which is used for instantiating new objecs when fetching from the database.
  • sort: an associative array which defines the default sorting of lists, the key is the table field while the value is the sorting method which is either 'asc' or 'desc'.
  • name: the name of the database table

Example: public static function definition() { return array( "fields" => array( "id" => "ID", "version" => "Version", "name" => "Name" ), "keys" => array( "id", "version" ), "function_attributes" => array( "current" => "currentVersion", "class_name" => "className" ), "increment_key" => "id", "class_name" => "eZContentClass", "sort" => array( "id" => "asc" ), "name" => "ezcontentclass" ); }

Returns:
array

Reimplemented from eZPersistentObject.

Definition at line 24 of file ezworkflowprocess.php.

Referenced by fetch(), fetchForContent(), fetchForSession(), fetchForStatus(), fetchList(), fetchListByKey(), fetchUserList(), and removeThis().

Definition at line 19 of file ezworkflowprocess.php.

Referenced by create().

static eZWorkflowProcess::fetch ( id,
asObject = true 
) [static]
static eZWorkflowProcess::fetchForContent ( workflowID,
userID,
contentID,
contentVersion,
nodeID,
asObject = true 
) [static]

Definition at line 500 of file ezworkflowprocess.php.

static eZWorkflowProcess::fetchForSession ( sessionKey,
workflowID,
asObject = true 
) [static]

Definition at line 529 of file ezworkflowprocess.php.

static eZWorkflowProcess::fetchForStatus ( status = eZWorkflow::STATUS_DEFERRED_TO_CRON,
asObject = true 
) [static]

Definition at line 514 of file ezworkflowprocess.php.

static eZWorkflowProcess::fetchList ( conds = null,
asObject = true,
offset = false,
limit = false 
) [static]

Definition at line 444 of file ezworkflowprocess.php.

static eZWorkflowProcess::fetchListByKey ( searchKey,
asObject = true 
) [static]

Definition at line 484 of file ezworkflowprocess.php.

Referenced by eZMultiplexerType\execute(), and eZTrigger\runTrigger().

static eZWorkflowProcess::fetchUserList ( userID,
asObject = true 
) [static]

Definition at line 492 of file ezworkflowprocess.php.

Definition at line 575 of file ezworkflowprocess.php.

Note:
Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.

Definition at line 624 of file ezworkflowprocess.php.

Definition at line 157 of file ezworkflowprocess.php.

Referenced by run().

eZWorkflowProcess::run ( &$  workflow,
&$  workflowEvent,
&$  eventLog 
)

Definition at line 180 of file ezworkflowprocess.php.

eZWorkflowProcess::setParameters ( parameterList = null)

Definition at line 546 of file ezworkflowprocess.php.

Definition at line 557 of file ezworkflowprocess.php.

Definition at line 584 of file ezworkflowprocess.php.


Member Data Documentation

eZWorkflowProcess::$ActivationDate

Definition at line 671 of file ezworkflowprocess.php.

eZWorkflowProcess::$ContentID

Definition at line 661 of file ezworkflowprocess.php.

eZWorkflowProcess::$Created

Definition at line 669 of file ezworkflowprocess.php.

eZWorkflowProcess::$EventID

Definition at line 663 of file ezworkflowprocess.php.

eZWorkflowProcess::$EventPosition

Definition at line 664 of file ezworkflowprocess.php.

eZWorkflowProcess::$EventStatus

Definition at line 668 of file ezworkflowprocess.php.

eZWorkflowProcess::$ID

Definition at line 658 of file ezworkflowprocess.php.

eZWorkflowProcess::$LastEventID

Definition at line 665 of file ezworkflowprocess.php.

eZWorkflowProcess::$LastEventPosition

Definition at line 666 of file ezworkflowprocess.php.

eZWorkflowProcess::$LastEventStatus

Definition at line 667 of file ezworkflowprocess.php.

eZWorkflowProcess::$Modified

Definition at line 670 of file ezworkflowprocess.php.

eZWorkflowProcess::$NodeID

Definition at line 662 of file ezworkflowprocess.php.

eZWorkflowProcess::$UserID

Definition at line 660 of file ezworkflowprocess.php.

eZWorkflowProcess::$WorkflowID

Definition at line 659 of file ezworkflowprocess.php.


The documentation for this class was generated from the following file: