eZ Publish  [4.2]
eZWorkflow Class Reference

! eZKernel The class eZWorkflow does More...

+ Inheritance diagram for eZWorkflow:
+ Collaboration diagram for eZWorkflow:

List of all members.

Public Member Functions

 cleanupWorkFlowProcess ()
 creator ()
 eZWorkflow ($row)
 fetchEventCount ($version=false)
 fetchEventIndexed ($index)
 fetchEvents ($asObject=true, $version=false)
 groupList ()
 ingroupIDList ()
 ingroupList ()
 isAllowed ($moduleName, $functionName, $connectType)
 modifier ()
 removeThis ($remove_childs=false)
 setVersion ($version, $set_childs=false)
 store ($store_childs=false)
 storeDefined ($store_childs=false)
 workflowType ()

Static Public Member Functions

static adjustEventPlacements ($events)
static create ($user_id)
static definition ()
static fetch ($id, $asObject=true, $version=0)
static fetchEventCountByWorkflowID ($id, $version=0)
static fetchEventsByWorkflowID ($id, $asObject=true, $version=0)
static fetchLimited ($moduleName, $functionName, $connectType)
static fetchList ($version=0, $enabled=1, $asObject=true)
static fetchListCount ($version=0, $enabled=1)
static removeEvents ($events=false, $id=false, $version=false)
static removeTemporary ()
static removeWorkflow ($id, $version)
static setIsEnabled ($enabled, $id, $version=0)
static statusName ($status)
static statusNameMap ()
 Get status name map.

Public Attributes

 $AllGroups
 $Created
 $CreatorID
 $ID
 $InGroupIDs
 $InGroups
 $IsEnabled
 $Modified
 $ModifierID
 $Name
 $Version
 $WorkflowTypeString
const STATUS_BUSY = 1
const STATUS_CANCELLED = 5
const STATUS_DEFERRED_TO_CRON = 4
const STATUS_DONE = 2
const STATUS_FAILED = 3
const STATUS_FETCH_TEMPLATE = 6
const STATUS_FETCH_TEMPLATE_REPEAT = 10
const STATUS_NONE = 0
const STATUS_REDIRECT = 7
const STATUS_RESET = 8
const STATUS_WAITING_PARENT = 9

Detailed Description

! eZKernel The class eZWorkflow does

Definition at line 37 of file ezworkflow.php.


Member Function Documentation

static eZWorkflow::adjustEventPlacements ( events) [static]

Definition at line 243 of file ezworkflow.php.

eZWorkflow::cleanupWorkFlowProcess ( )
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 542 of file ezworkflow.php.

static eZWorkflow::create ( user_id) [static]

Definition at line 125 of file ezworkflow.php.

eZWorkflow::creator ( )

Definition at line 485 of file ezworkflow.php.

static eZWorkflow::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:

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" );
}

Reimplemented from eZPersistentObject.

Definition at line 56 of file ezworkflow.php.

Referenced by fetch(), fetchList(), fetchListCount(), removeWorkflow(), and setIsEnabled().

eZWorkflow::eZWorkflow ( row)

Definition at line 51 of file ezworkflow.php.

Referenced by create().

static eZWorkflow::fetch ( id,
asObject = true,
version = 0 
) [static]

Definition at line 327 of file ezworkflow.php.

Referenced by creator(), eZMultiplexerType\execute(), and modifier().

eZWorkflow::fetchEventCount ( version = false)

Definition at line 451 of file ezworkflow.php.

static eZWorkflow::fetchEventCountByWorkflowID ( id,
version = 0 
) [static]

Definition at line 470 of file ezworkflow.php.

eZWorkflow::fetchEventIndexed ( index)

Definition at line 414 of file ezworkflow.php.

eZWorkflow::fetchEvents ( asObject = true,
version = false 
)

Definition at line 433 of file ezworkflow.php.

Referenced by cleanupWorkFlowProcess(), isAllowed(), setVersion(), store(), and storeDefined().

static eZWorkflow::fetchEventsByWorkflowID ( id,
asObject = true,
version = 0 
) [static]

Definition at line 444 of file ezworkflow.php.

static eZWorkflow::fetchLimited ( moduleName,
functionName,
connectType 
) [static]

Fetch workflows based on module, function and connection type

Parameters:
$moduleNamemodule name
$functionNamefunction name
$connectTypeconnection type
Returns:
array of allowed workflows limited by trigger

Definition at line 346 of file ezworkflow.php.

Referenced by eZTrigger\fetchAllowedWorkflows().

static eZWorkflow::fetchList ( version = 0,
enabled = 1,
asObject = true 
) [static]
static eZWorkflow::fetchListCount ( version = 0,
enabled = 1 
) [static]

Definition at line 399 of file ezworkflow.php.

eZWorkflow::groupList ( )

Definition at line 527 of file ezworkflow.php.

eZWorkflow::ingroupIDList ( )

Definition at line 513 of file ezworkflow.php.

eZWorkflow::ingroupList ( )

Definition at line 505 of file ezworkflow.php.

eZWorkflow::isAllowed ( moduleName,
functionName,
connectType 
)

Check if a trigger specified trigger is allowed to use with this workflow

Parameters:
$moduleNamemodule name
$functionNamefunction name
$connectTypeconnection type
Returns:
true if allowed, false if not.

Definition at line 373 of file ezworkflow.php.

Referenced by fetchLimited().

eZWorkflow::modifier ( )

Definition at line 495 of file ezworkflow.php.

static eZWorkflow::removeEvents ( events = false,
id = false,
version = false 
) [static]
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 215 of file ezworkflow.php.

static eZWorkflow::removeTemporary ( ) [static]

Removes all temporary versions.

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 195 of file ezworkflow.php.

eZWorkflow::removeThis ( remove_childs = false)
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 167 of file ezworkflow.php.

static eZWorkflow::removeWorkflow ( id,
version 
) [static]
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 156 of file ezworkflow.php.

static eZWorkflow::setIsEnabled ( enabled,
id,
version = 0 
) [static]

Definition at line 141 of file ezworkflow.php.

eZWorkflow::setVersion ( version,
set_childs = false 
)

Definition at line 307 of file ezworkflow.php.

static eZWorkflow::statusName ( status) [static]

Definition at line 117 of file ezworkflow.php.

static eZWorkflow::statusNameMap ( ) [static]

Get status name map.

Returns:
array Status name map.

Definition at line 571 of file ezworkflow.php.

Referenced by statusName().

eZWorkflow::store ( store_childs = false)
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.

Reimplemented from eZPersistentObject.

Definition at line 258 of file ezworkflow.php.

Referenced by storeDefined().

eZWorkflow::storeDefined ( store_childs = false)
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 284 of file ezworkflow.php.

eZWorkflow::workflowType ( )

Definition at line 533 of file ezworkflow.php.


Member Data Documentation

eZWorkflow::$AllGroups

Definition at line 596 of file ezworkflow.php.

eZWorkflow::$Created

Definition at line 592 of file ezworkflow.php.

eZWorkflow::$CreatorID

Definition at line 590 of file ezworkflow.php.

eZWorkflow::$ID

Definition at line 585 of file ezworkflow.php.

eZWorkflow::$InGroupIDs

Definition at line 595 of file ezworkflow.php.

eZWorkflow::$InGroups

Definition at line 594 of file ezworkflow.php.

eZWorkflow::$IsEnabled

Definition at line 589 of file ezworkflow.php.

eZWorkflow::$Modified

Definition at line 593 of file ezworkflow.php.

eZWorkflow::$ModifierID

Definition at line 591 of file ezworkflow.php.

eZWorkflow::$Name

Definition at line 586 of file ezworkflow.php.

eZWorkflow::$Version

Definition at line 588 of file ezworkflow.php.

eZWorkflow::$WorkflowTypeString

Definition at line 587 of file ezworkflow.php.

Definition at line 40 of file ezworkflow.php.

Referenced by eZTrigger\runTrigger(), eZTrigger\runWorkflow(), and statusNameMap().

Definition at line 39 of file ezworkflow.php.

Referenced by eZTrigger\runTrigger(), eZTrigger\runWorkflow(), and statusNameMap().

Definition at line 48 of file ezworkflow.php.

Referenced by eZMultiplexerType\execute().


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