-
Notifications
You must be signed in to change notification settings - Fork 0
CI_Hooks
Mathieu Nayrolles edited this page Jan 20, 2016
·
1 revision
Hooks Class
Provides a mechanism to extend the base system without hacking.
- Class name: CI_Hooks
- Namespace:
public boolean $enabled = FALSE
Determines whether hooks are enabled
- Visibility: public
public array $hooks = array()
List of all hooks set in config/hooks.php
- Visibility: public
protected array $_objects = array()
Array with class objects to use hooks methods
- Visibility: protected
protected boolean $_in_progress = FALSE
In progress flag
Determines whether hook is in progress, used to prevent infinte loops
- Visibility: protected
void CI_Hooks::__construct()
Class constructor
- Visibility: public
boolean CI_Hooks::call_hook(string $which)
Call Hook
Calls a particular hook. Called by CodeIgniter.php.
- Visibility: public
- $which string - <p>Hook name</p>
boolean CI_Hooks::_run_hook(array $data)
Run Hook
Runs a particular hook
- Visibility: protected
- $data array - <p>Hook details</p>