Class CI_Hooks - echiong/testRepo GitHub Wiki

##Class CI_Hooks

CodeIgniter Hooks Class

Provides a mechanism to extend the base system without hacking.

Package: [[CodeIgniter<a href="Package CodeIgniter.Libraries.md">Libraries]]
Category: Libraries
Author: ExpressionEngine Dev Team
Link: http://codeigniter.com/user_guide/libraries/encryption.html
Located at system/core/Hooks.php

##Methods summary


public __construct ( )

Constructor


public _initialize ( )

Initialize the Hooks Preferences


public mixed _call_hook ( string $which = '' )

Call Hook

Calls a particular hook

Parameters

$which string
the hook name

Returns mixed


public boolean _run_hook ( array $data )

Run Hook

Runs a particular hook

Parameters

$data array
the hook details

Returns boolean

<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="enabled" id="$enabled">
	<td class="attributes"><code>
		public  
		boolean
	</code></td>

	<td class="name">

$enabled

FALSE
#
		<div class="description detailed">

Determines wether hooks are enabled

		</div>
	</div></td>
</tr>
<tr data-order="hooks" id="$hooks">
	<td class="attributes"><code>
		public  
		array
	</code></td>

	<td class="name">

$hooks

array()
#
		<div class="description detailed">

List of all hooks set in config/hooks.php

		</div>
	</div></td>
</tr>
<tr data-order="in_progress" id="$in_progress">
	<td class="attributes"><code>
		public  
		boolean
	</code></td>

	<td class="name">

$in_progress

FALSE
#
		<div class="description detailed">

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

		</div>
	</div></td>
</tr>
</table>
⚠️ **GitHub.com Fallback** ⚠️