include/utils/LogicHook.php
\LogicHook
Predefined logic hooks after_ui_frame after_ui_footer after_save before_save before_retrieve after_retrieve process_record before_delete after_delete before_restore after_restore server_roundtrip before_logout after_logout before_login after_login login_failed after_session_start after_entry_point
- Api
Properties
Methods

call_custom_logic(
string $module_dir, string $event, array $arguments
=
null
)
:
voidProvide a means for developers to create upgrade safe business logic hooks.
If the bean is null, then we assume this call was not made from a SugarBean Object and therefore we do not pass it to the method call.
| Name | Type | Description |
|---|---|---|
| $module_dir | string | |
| $event | string | |
| $arguments | array |

getHooks(
$module_dir, $refresh
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $module_dir | ||
| $refresh |

initialize(
)
:
\unknownStatic Function which returns and instance of LogicHook
| Type | Description |
|---|---|
| \unknown |

process_hooks(
array $hook_array, string $event, array $arguments
)
:
voidThis is called from call_custom_logic and actually performs the action as defined in the logic hook. If the bean is null, then we assume this call was not made from a SugarBean Object and therefore we do not pass it to the method call.
| Name | Type | Description |
|---|---|---|
| $hook_array | array | |
| $event | string | |
| $arguments | array |