|
eZ Publish
[trunk]
|
The class eZModuleOperationInfo does. More...
Public Member Functions | |
| callClassMethod ($methodName, $classObject, $parameterArray) | |
| execute ($operationName, $operationParameters, $mementoData=null) | |
| Executes the operation. | |
| executeBody ($includeFile, $className, $bodyStructure, $operationKeys, $operationParameterDefinitions, $operationParameters, &$mementoData, &$bodyCallCount, $operationName, $currentLoopData=null) | |
| Executes the operation body. | |
| executeClassMethod ($includeFile, $className, $methodName, $operationParameterDefinitions, $operationParameters) | |
| Executes a class method in an operation body. | |
| executeTrigger (&$bodyReturnValue, $body, $operationParameterDefinitions, $operationParameters, &$bodyCallCount, $currentLoopData, $triggerRestored, $operationName, &$operationKeys) | |
| Executes an operation trigger. | |
| eZModuleOperationInfo ($moduleName, $useTriggers=true) | |
| Constructor. | |
| isValid () | |
| ??? | |
| loadDefinition () | |
| Loads the operations definition for the current module. | |
| makeKeyArray ($keyDefinition, $parameterDefinition, $operationParameters) | |
| makeOperationKeyArray ($operationDefinition, $operationParameters) | |
| removeBodyMemento ($bodyName, $bodyKeys, $operationKeys, $operationParameterDefinitions, $operationParameters, &$bodyCallCount, $currentLoopData, $operationName) | |
| restoreBodyMementoData ($bodyName, &$mementoData, &$operationParameters, &$bodyCallCount, &$currentLoopData) | |
| storeBodyMemento ($bodyName, $bodyKeys, $operationKeys, $operationParameterDefinitions, $operationParameters, &$bodyCallCount, $currentLoopData, $operationName) | |
| Packs the current body data (memento) for save & re-use. | |
| storeOperationMemento ($operationKeys, $operationParameterDefinitions, $operationParameters, &$bodyCallCount, $operationName) | |
Public Attributes | |
| $FunctionList | |
| $IsValid | |
| $Memento | |
| $ModuleName | |
| $UseTriggers = false | |
| const | ERROR_CLASS_INSTANTIATE_FAILED = 7 |
| const | ERROR_MISSING_PARAMETER = 8 |
| const | ERROR_NO_CLASS = 5 |
| const | ERROR_NO_CLASS_METHOD = 6 |
| const | STATUS_CANCELLED = 2 |
| const | STATUS_CONTINUE = 1 |
| const | STATUS_HALTED = 3 |
| const | STATUS_QUEUED = 5 |
| const | STATUS_REPEAT = 4 |
Private Member Functions | |
| objectForClass ($className) | |
| Helper method that keeps and returns the instances of operation objects. | |
The class eZModuleOperationInfo does.
Definition at line 17 of file ezmoduleoperationinfo.php.
| eZModuleOperationInfo::callClassMethod | ( | $ | methodName, |
| $ | classObject, | ||
| $ | parameterArray | ||
| ) |
Definition at line 834 of file ezmoduleoperationinfo.php.
| eZModuleOperationInfo::execute | ( | $ | operationName, |
| $ | operationParameters, | ||
| $ | mementoData = null |
||
| ) |
Executes the operation.
| string | $operationName | |
| array | $operationParameters | |
| array | $mementoData |
Definition at line 124 of file ezmoduleoperationinfo.php.
| eZModuleOperationInfo::executeBody | ( | $ | includeFile, |
| $ | className, | ||
| $ | bodyStructure, | ||
| $ | operationKeys, | ||
| $ | operationParameterDefinitions, | ||
| $ | operationParameters, | ||
| &$ | mementoData, | ||
| &$ | bodyCallCount, | ||
| $ | operationName, | ||
| $ | currentLoopData = null |
||
| ) |
Executes the operation body.
| string | $includeFile | Path to the file where the operation class is defined |
| string | $className | Name of the class holding the operation methods ( |
| array | $bodyStructure | |
| array | $operationKeys | |
| array | $operationParameterDefinitions | |
| array | $operationParameters | |
| array | $mementoData | |
| int | $bodyCallCount | |
| string | $operationName | |
| array | $currentLoopData |
Definition at line 338 of file ezmoduleoperationinfo.php.
Referenced by execute().
| eZModuleOperationInfo::executeClassMethod | ( | $ | includeFile, |
| $ | className, | ||
| $ | methodName, | ||
| $ | operationParameterDefinitions, | ||
| $ | operationParameters | ||
| ) |
Executes a class method in an operation body.
| string | $includeFile | The file where the class & method are defined |
| string | $className | The class where the method is implemented |
| string | $methodName | The method to call |
| mixed | $operationParameterDefinitions | The method parameters definition |
| mixed | $operationParameters | The method parameters values |
Definition at line 752 of file ezmoduleoperationinfo.php.
Referenced by executeBody().
| eZModuleOperationInfo::executeTrigger | ( | &$ | bodyReturnValue, |
| $ | body, | ||
| $ | operationParameterDefinitions, | ||
| $ | operationParameters, | ||
| &$ | bodyCallCount, | ||
| $ | currentLoopData, | ||
| $ | triggerRestored, | ||
| $ | operationName, | ||
| &$ | operationKeys | ||
| ) |
Executes an operation trigger.
| array | $bodyReturnValue | The current return value |
| array | $body | Body data for the trigger being executed |
| array | $operationParameterDefinitions | Operation parameters definition |
| array | $operationParameters | Operation parameters values |
| int | $bodyCallCount | Number of times the body was called |
| array | $currentLoopData | Memento data for the operation |
| bool | $triggerRestored | Boolean that indicates if operation data (memento) was restored |
| string | $operationName | The operation name |
| array | $operationKeys | Additional parameters. Only used by looping so far. |
Definition at line 579 of file ezmoduleoperationinfo.php.
Referenced by executeBody().
| eZModuleOperationInfo::eZModuleOperationInfo | ( | $ | moduleName, |
| $ | useTriggers = true |
||
| ) |
Constructor.
| string | $moduleName | |
| bool | $useTriggers |
Definition at line 35 of file ezmoduleoperationinfo.php.
Loads the operations definition for the current module.
Definition at line 58 of file ezmoduleoperationinfo.php.
| eZModuleOperationInfo::makeKeyArray | ( | $ | keyDefinition, |
| $ | parameterDefinition, | ||
| $ | operationParameters | ||
| ) |
Definition at line 96 of file ezmoduleoperationinfo.php.
Referenced by makeOperationKeyArray(), removeBodyMemento(), storeBodyMemento(), and storeOperationMemento().
| eZModuleOperationInfo::makeOperationKeyArray | ( | $ | operationDefinition, |
| $ | operationParameters | ||
| ) |
Definition at line 85 of file ezmoduleoperationinfo.php.
Referenced by execute().
| eZModuleOperationInfo::objectForClass | ( | $ | className | ) | [private] |
Helper method that keeps and returns the instances of operation objects.
| string | $className | The class the method should return an object for |
Definition at line 817 of file ezmoduleoperationinfo.php.
Referenced by executeClassMethod().
| eZModuleOperationInfo::removeBodyMemento | ( | $ | bodyName, |
| $ | bodyKeys, | ||
| $ | operationKeys, | ||
| $ | operationParameterDefinitions, | ||
| $ | operationParameters, | ||
| &$ | bodyCallCount, | ||
| $ | currentLoopData, | ||
| $ | operationName | ||
| ) |
Definition at line 662 of file ezmoduleoperationinfo.php.
| eZModuleOperationInfo::restoreBodyMementoData | ( | $ | bodyName, |
| &$ | mementoData, | ||
| &$ | operationParameters, | ||
| &$ | bodyCallCount, | ||
| &$ | currentLoopData | ||
| ) |
Definition at line 702 of file ezmoduleoperationinfo.php.
Referenced by executeBody().
| eZModuleOperationInfo::storeBodyMemento | ( | $ | bodyName, |
| $ | bodyKeys, | ||
| $ | operationKeys, | ||
| $ | operationParameterDefinitions, | ||
| $ | operationParameters, | ||
| &$ | bodyCallCount, | ||
| $ | currentLoopData, | ||
| $ | operationName | ||
| ) |
Packs the current body data (memento) for save & re-use.
| string | $bodyName | |
| array | $bodyKeys | |
| array | $operationKeys | |
| array | $operationParameterDefinitions | |
| array | $operationParameters | |
| int | $bodyCallCount | |
| array | $currentLoopData | |
| string | $operationName |
Definition at line 682 of file ezmoduleoperationinfo.php.
Referenced by executeTrigger().
| eZModuleOperationInfo::storeOperationMemento | ( | $ | operationKeys, |
| $ | operationParameterDefinitions, | ||
| $ | operationParameters, | ||
| &$ | bodyCallCount, | ||
| $ | operationName | ||
| ) |
Definition at line 641 of file ezmoduleoperationinfo.php.
Referenced by execute(), and storeBodyMemento().
| eZModuleOperationInfo::$FunctionList |
Definition at line 842 of file ezmoduleoperationinfo.php.
| eZModuleOperationInfo::$IsValid |
Definition at line 843 of file ezmoduleoperationinfo.php.
| eZModuleOperationInfo::$Memento |
Definition at line 849 of file ezmoduleoperationinfo.php.
| eZModuleOperationInfo::$ModuleName |
Definition at line 841 of file ezmoduleoperationinfo.php.
| eZModuleOperationInfo::$UseTriggers = false |
Definition at line 844 of file ezmoduleoperationinfo.php.
Definition at line 21 of file ezmoduleoperationinfo.php.
Referenced by execute(), and executeClassMethod().
Definition at line 22 of file ezmoduleoperationinfo.php.
Referenced by execute(), and executeClassMethod().
| const eZModuleOperationInfo::ERROR_NO_CLASS = 5 |
Definition at line 19 of file ezmoduleoperationinfo.php.
Referenced by execute(), and executeClassMethod().
Definition at line 20 of file ezmoduleoperationinfo.php.
Referenced by execute(), and executeClassMethod().
| const eZModuleOperationInfo::STATUS_CANCELLED = 2 |
Definition at line 25 of file ezmoduleoperationinfo.php.
Referenced by eZShopOperationCollection\addToBasket(), eZShopOperationCollection\checkCurrency(), executeBody(), executeTrigger(), eZShopOperationCollection\handleUserCountry(), eZContentUpload\publishObject(), eZUserOperationCollection\publishUserContentObject(), and eZContentOperationCollection\updateSectionID().
| const eZModuleOperationInfo::STATUS_CONTINUE = 1 |
Definition at line 24 of file ezmoduleoperationinfo.php.
Referenced by eZShopOperationCollection\activateOrder(), eZShopOperationCollection\addToBasket(), eZUserOperationCollection\checkActivation(), eZShopOperationCollection\checkCurrency(), executeBody(), executeTrigger(), eZShopOperationCollection\fetchOrder(), eZShopOperationCollection\handleShipping(), eZShopOperationCollection\handleUserCountry(), importRSSItem(), eZStepCreateSites\initializePackage(), ezpContentPublishingProcess\publish(), eZContentUpload\publishObject(), eZUserOperationCollection\publishUserContentObject(), eZUserOperationCollection\sendActivationEmail(), eZShopOperationCollection\sendOrderEmails(), eZContentOperationCollection\sendToPublishingQueue(), eZUserOperationCollection\sendUserNotification(), eZContentFunctions\updateAndPublishObject(), and eZShopOperationCollection\updateShippingInfo().
| const eZModuleOperationInfo::STATUS_HALTED = 3 |
Definition at line 26 of file ezmoduleoperationinfo.php.
Referenced by eZUserOperationCollection\checkActivation(), execute(), executeBody(), executeTrigger(), ezpContentPublishingProcess\publish(), eZContentUpload\publishObject(), eZUserOperationCollection\publishUserContentObject(), and eZContentOperationCollection\sendToPublishingQueue().
| const eZModuleOperationInfo::STATUS_QUEUED = 5 |
Definition at line 28 of file ezmoduleoperationinfo.php.
| const eZModuleOperationInfo::STATUS_REPEAT = 4 |
Definition at line 27 of file ezmoduleoperationinfo.php.
Referenced by execute(), executeBody(), and executeTrigger().