PHP Class 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.
Author: ExpressionEngine Dev Team
Afficher le fichier Open project: tastyigniter/tastyigniter Class Usage Examples

Méthodes publiques

Свойство Type Description
$enabled boolean Determines whether hooks are enabled
$hooks array List of all hooks set in config/hooks.php

Protected Properties

Свойство Type Description
$_in_progress boolean Determines whether hook is in progress, used to prevent infinte loops
$_objects array Array with class objects to use hooks methods

Méthodes publiques

Méthode Description
__construct ( ) : void Class constructor
call_hook ( string $which = '' ) : boolean Call Hook

Méthodes protégées

Méthode Description
_run_hook ( array $data ) : boolean Run Hook

Method Details

__construct() public méthode

Class constructor
public __construct ( ) : void
Résultat void

_run_hook() protected méthode

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

call_hook() public méthode

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

Property Details

$_in_progress protected_oe property

Determines whether hook is in progress, used to prevent infinte loops
protected bool $_in_progress
Résultat boolean

$_objects protected_oe property

Array with class objects to use hooks methods
protected array $_objects
Résultat array

$enabled public_oe property

Determines whether hooks are enabled
public bool $enabled
Résultat boolean

$hooks public_oe property

List of all hooks set in config/hooks.php
public array $hooks
Résultat array