PHP 클래스 Horde_Core_Hooks, horde

부터: 2.11.0
저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_apps array Cached hook objects (keys are application names).

공개 메소드들

메소드 설명
callHook ( string $hook, string $app = 'horde', array $args = [] ) : mixed Call a Horde hook.
hookExists ( string $hook, string $app = 'horde' ) : boolean Returns whether a hook exists.

메소드 상세

callHook() 공개 메소드

WARNING: Throwing exceptions is expensive, so use callHook() with care and cache the results if you going to use the results more than once.
public callHook ( string $hook, string $app = 'horde', array $args = [] ) : mixed
$hook string The hook function to call.
$app string The hook application.
$args array An array of any arguments to pass to the hook function.
리턴 mixed The results of the hook.

hookExists() 공개 메소드

Use this if you have to call a hook many times and expect the hook to not exist.
public hookExists ( string $hook, string $app = 'horde' ) : boolean
$hook string The hook function.
$app string The hook application.
리턴 boolean True if the hook exists.

프로퍼티 상세

$_apps 보호되어 있는 프로퍼티

Cached hook objects (keys are application names).
protected array $_apps
리턴 array