\pm_Hook_Supervisor

Abstract class for supervisor control of other hooks

Summary

Methods
Properties
Constants
isHookAllowed()
isScriptAllowed()
getPredefinedResponse()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A

Methods

isHookAllowed()

isHookAllowed(string  $moduleId, string  $hook) : boolean

Check if the hook is allowed for the extension or not

Parameters

string $moduleId
string $hook

Returns

boolean

isScriptAllowed()

isScriptAllowed(string  $moduleId, string  $script) : boolean

Check if the script is allowed for execution or not

Parameters

string $moduleId
string $script

Returns

boolean

getPredefinedResponse()

getPredefinedResponse(string  $command, array  $args = array()) : array|null

Check if the backend command exec is allowed or predefined response is returned

Parameters

string $command
array $args

Returns

array|null