|
eZ Publish
[trunk]
|
The class eZTrigger does. More...
Inheritance diagram for eZTrigger:
Collaboration diagram for eZTrigger:Public Member Functions | |
| eZTrigger ($row) | |
| fetchAllowedWorkflows () | |
Static Public Member Functions | |
| static | createNew ($moduleName, $functionName, $connectType, $workflowID, $name=false) |
| static | definition () |
| Returns the definition for the object, the default implementation is to return an empty array. | |
| static | fetch ($triggerID) |
| static | fetchList ($parameters=array(), $asObject=true) |
| static | removeTriggerForWorkflow ($workFlowID) |
| static | runTrigger ($name, $moduleName, $function, $parameters, $keys=null) |
| static | runWorkflow ($workflowProcess) |
Public Attributes | |
| const | FETCH_TEMPLATE = 4 |
| const | FETCH_TEMPLATE_REPEAT = 7 |
| const | NO_CONNECTED_WORKFLOWS = 3 |
| const | REDIRECT = 5 |
| const | STATUS_CRON_JOB = 0 |
| const | WORKFLOW_CANCELLED = 2 |
| const | WORKFLOW_DONE = 1 |
| const | WORKFLOW_RESET = 6 |
The class eZTrigger does.
Definition at line 16 of file eztrigger.php.
| static eZTrigger::createNew | ( | $ | moduleName, |
| $ | functionName, | ||
| $ | connectType, | ||
| $ | workflowID, | ||
| $ | name = false |
||
| ) | [static] |
Definition at line 339 of file eztrigger.php.
| static eZTrigger::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:
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" ); }
Reimplemented from eZPersistentObject.
Definition at line 35 of file eztrigger.php.
Referenced by fetch(), fetchList(), and runTrigger().
| eZTrigger::eZTrigger | ( | $ | row | ) |
| static eZTrigger::fetch | ( | $ | triggerID | ) | [static] |
Definition at line 93 of file eztrigger.php.
Referenced by runTrigger(), and runWorkflow().
Get array containing allowed workflows for this trigger.
Definition at line 76 of file eztrigger.php.
| static eZTrigger::fetchList | ( | $ | parameters = array(), |
| $ | asObject = true |
||
| ) | [static] |
Definition at line 101 of file eztrigger.php.
| static eZTrigger::removeTriggerForWorkflow | ( | $ | workFlowID | ) | [static] |
Removes triggers which uses the given workflowID.
Definition at line 367 of file eztrigger.php.
Referenced by removeSelectedGroups().
| static eZTrigger::runTrigger | ( | $ | name, |
| $ | moduleName, | ||
| $ | function, | ||
| $ | parameters, | ||
| $ | keys = null |
||
| ) | [static] |
Definition at line 133 of file eztrigger.php.
Referenced by eZModuleOperationInfo\executeTrigger().
| static eZTrigger::runWorkflow | ( | $ | workflowProcess | ) | [static] |
Definition at line 236 of file eztrigger.php.
Referenced by runTrigger().
| const eZTrigger::FETCH_TEMPLATE = 4 |
Definition at line 22 of file eztrigger.php.
Referenced by eZModuleOperationInfo\executeTrigger(), and runWorkflow().
| const eZTrigger::FETCH_TEMPLATE_REPEAT = 7 |
Definition at line 25 of file eztrigger.php.
Referenced by eZModuleOperationInfo\executeTrigger(), and runWorkflow().
| const eZTrigger::NO_CONNECTED_WORKFLOWS = 3 |
Definition at line 21 of file eztrigger.php.
Referenced by eZModuleOperationInfo\executeTrigger(), and runTrigger().
| const eZTrigger::REDIRECT = 5 |
Definition at line 23 of file eztrigger.php.
Referenced by eZModuleOperationInfo\executeTrigger(), and runWorkflow().
| const eZTrigger::STATUS_CRON_JOB = 0 |
Definition at line 18 of file eztrigger.php.
Referenced by eZModuleOperationInfo\executeTrigger(), and runWorkflow().
| const eZTrigger::WORKFLOW_CANCELLED = 2 |
Definition at line 20 of file eztrigger.php.
Referenced by eZModuleOperationInfo\executeTrigger(), runTrigger(), and runWorkflow().
| const eZTrigger::WORKFLOW_DONE = 1 |
Definition at line 19 of file eztrigger.php.
Referenced by eZModuleOperationInfo\executeTrigger(), runTrigger(), and runWorkflow().
| const eZTrigger::WORKFLOW_RESET = 6 |
Definition at line 24 of file eztrigger.php.
Referenced by eZModuleOperationInfo\executeTrigger(), and runWorkflow().