\CI_Hooks

CodeIgniter Hooks Class

Provides a mechanism to extend the base system without hacking.

Summary

Methods
Properties
Constants
__construct()
_initialize()
_call_hook()
_run_hook()
$enabled
$hooks
$in_progress
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$enabled

$enabled : boolean

Determines wether hooks are enabled

Type

boolean

$hooks

$hooks : array

List of all hooks set in config/hooks.php

Type

array

$in_progress

$in_progress : boolean

Determines wether hook is in progress, used to prevent infinte loops

Type

boolean

Methods

__construct()

__construct() 

Constructor

_initialize()

_initialize() : void

Initialize the Hooks Preferences

_call_hook()

_call_hook(  $which = '') : mixed

Call Hook

Calls a particular hook

Parameters

$which

Returns

mixed

_run_hook()

_run_hook(  $data) : boolean

Run Hook

Runs a particular hook

Parameters

$data

Returns

boolean