Method | Description | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
getScript ( ) : string | Returns the content of the currently active script. | |
setScriptActive ( array $script ) | Sets a script running on the backend. |
Method | Description | |
---|---|---|
_connect ( ) | Connect and bind to ldap server. | |
_getScripts ( resource $ldapcn, string &$userDN ) : array | Retrieve current user's scripts. | |
_substUser ( string $templ ) : string | Create a DN from a DN template. |
protected _getScripts ( resource $ldapcn, string &$userDN ) : array | ||
$ldapcn | resource | The connection to the LDAP server. |
$userDN | string | Set to the user object's real DN. |
return | array | Script sources list. |
protected _substUser ( string $templ ) : string | ||
$templ | string | The DN template (from the config). |
return | string | The resulting DN. |
public setScriptActive ( array $script ) | ||
$script | array | The filter script information. Passed elements: - 'name': (string) the script name. - 'recipes': (array) the filter recipe objects. - 'script': (string) the filter script. |