lib/ezutils/classes/ezmoduleoperationinfo.php
\eZModuleOperationInfo
Constants
Properties
Methods

callClassMethod(
$methodName, $classObject, $parameterArray
)
:
void| Name | Type | Description |
|---|---|---|
| $methodName | ||
| $classObject | ||
| $parameterArray |
- Deprecated
- use call_user_func_array() instead

eZModuleOperationInfo(
string $moduleName, bool $useTriggers
=
true
)
:
voidConstructor
| Name | Type | Description |
|---|---|---|
| $moduleName | string | |
| $useTriggers | bool |

execute(
string $operationName, array $operationParameters, array $mementoData
=
null
)
:
mixedExecutes the operation
| Name | Type | Description |
|---|---|---|
| $operationName | string | |
| $operationParameters | array | |
| $mementoData | array |
| Type | Description |
|---|---|
| mixed | the operation execution result, or null if an error occured |

executeBody(
string $includeFile, string $className, array $bodyStructure, array $operationKeys, array $operationParameterDefinitions, array $operationParameters, array $mementoData, int $bodyCallCount, string $operationName, array $currentLoopData
=
null
)
:
arrayExecutes the operation body
| Name | Type | Description |
|---|---|---|
| $includeFile | string | Path to the file where the operation class is defined |
| $className | string | Name of the class holding the operation methods (@see $includeFile) |
| $bodyStructure | array | |
| $operationKeys | array | |
| $operationParameterDefinitions | array | |
| $operationParameters | array | |
| $mementoData | array | |
| $bodyCallCount | int | |
| $operationName | string | |
| $currentLoopData | array |
| Type | Description |
|---|---|
| array |

executeClassMethod(
string $includeFile, string $className, string $methodName, mixed $operationParameterDefinitions, mixed $operationParameters
)
:
arrayExecutes a class method in an operation body
| Name | Type | Description |
|---|---|---|
| $includeFile | string | The file where the class /p> |
| $className | string | The class where the method is implemented |
| $methodName | string | The method to call |
| $operationParameterDefinitions | mixed | The method parameters definition |
| $operationParameters | mixed | The method parameters values |
| Type | Description |
|---|---|
| array |

executeTrigger(
array $bodyReturnValue, array $body, array $operationParameterDefinitions, array $operationParameters, int $bodyCallCount, array $currentLoopData, bool $triggerRestored, string $operationName, array $operationKeys
)
:
Executes an operation trigger
| Name | Type | Description |
|---|---|---|
| $bodyReturnValue | array | The current return value |
| $body | array | Body data for the trigger being executed |
| $operationParameterDefinitions | array | Operation parameters definition |
| $operationParameters | array | Operation parameters values |
| $bodyCallCount | int | Number of times the body was called |
| $currentLoopData | array | Memento data for the operation |
| $triggerRestored | bool | Boolean that indicates if operation data (memento) was restored |
| $operationName | string | The operation name |
| $operationKeys | array | Additional parameters. Only used by looping so far. |

loadDefinition(
)
:
boolLoads the operations definition for the current module
| Type | Description |
|---|---|
| bool | true if the operations were loaded, false if an error occured |

makeKeyArray(
$keyDefinition, $parameterDefinition, $operationParameters
)
:
void| Name | Type | Description |
|---|---|---|
| $keyDefinition | ||
| $parameterDefinition | ||
| $operationParameters |

makeOperationKeyArray(
$operationDefinition, $operationParameters
)
:
void| Name | Type | Description |
|---|---|---|
| $operationDefinition | ||
| $operationParameters |

objectForClass(
string $className
)
:
\$classNameHelper method that keeps and returns the instances of operation objects
| Name | Type | Description |
|---|---|---|
| $className | string | The class the method should return an object for |
| Type | Description |
|---|---|
| \$className |
- Private
- Todo
- Use a static variable instead of globals

removeBodyMemento(
$bodyName, $bodyKeys, $operationKeys, $operationParameterDefinitions, $operationParameters, $bodyCallCount, $currentLoopData, $operationName
)
:
void| Name | Type | Description |
|---|---|---|
| $bodyName | ||
| $bodyKeys | ||
| $operationKeys | ||
| $operationParameterDefinitions | ||
| $operationParameters | ||
| $bodyCallCount | ||
| $currentLoopData | ||
| $operationName |

restoreBodyMementoData(
$bodyName, $mementoData, $operationParameters, $bodyCallCount, $currentLoopData
)
:
void| Name | Type | Description |
|---|---|---|
| $bodyName | ||
| $mementoData | ||
| $operationParameters | ||
| $bodyCallCount | ||
| $currentLoopData |

storeBodyMemento(
string $bodyName, array $bodyKeys, array $operationKeys, array $operationParameterDefinitions, array $operationParameters, int $bodyCallCount, array $currentLoopData, string $operationName
)
:
\ThePacks the current body data (memento) for save & re-use
| Name | Type | Description |
|---|---|---|
| $bodyName | string | |
| $bodyKeys | array | |
| $operationKeys | array | |
| $operationParameterDefinitions | array | |
| $operationParameters | array | |
| $bodyCallCount | int | |
| $currentLoopData | array | |
| $operationName | string |
| Type | Description |
|---|---|
| \The | memento |