PHP 클래스 CI_Hooks, TastyIgniter

Provides a mechanism to extend the base system without hacking. Most of this class is borrowed from Paul's Extension class in ExpressionEngine.
저자: ExpressionEngine Dev Team
파일 보기 프로젝트 열기: tastyigniter/tastyigniter 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$enabled boolean Determines whether hooks are enabled
$hooks array List of all hooks set in config/hooks.php

보호된 프로퍼티들

프로퍼티 타입 설명
$_in_progress boolean Determines whether hook is in progress, used to prevent infinte loops
$_objects array Array with class objects to use hooks methods

공개 메소드들

메소드 설명
__construct ( ) : void Class constructor
call_hook ( string $which = '' ) : boolean Call Hook

보호된 메소드들

메소드 설명
_run_hook ( array $data ) : boolean Run Hook

메소드 상세

__construct() 공개 메소드

Class constructor
public __construct ( ) : void
리턴 void

_run_hook() 보호된 메소드

Runs a particular hook
protected _run_hook ( array $data ) : boolean
$data array Hook details
리턴 boolean TRUE on success or FALSE on failure

call_hook() 공개 메소드

Calls a particular hook. Called by CodeIgniter.php.
public call_hook ( string $which = '' ) : boolean
$which string Hook name
리턴 boolean TRUE on success or FALSE on failure

프로퍼티 상세

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

Determines whether hook is in progress, used to prevent infinte loops
protected bool $_in_progress
리턴 boolean

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

Array with class objects to use hooks methods
protected array $_objects
리턴 array

$enabled 공개적으로 프로퍼티

Determines whether hooks are enabled
public bool $enabled
리턴 boolean

$hooks 공개적으로 프로퍼티

List of all hooks set in config/hooks.php
public array $hooks
리턴 array