Solar::callbacks()
static public
void
Solar::callbacks
( array $callbacks
)
Runs a series of callbacks using call_user_func_array().
Parameters
(array)
$callbacks
: The array of callbacks.
Returns
(void)
Description
Runs a series of callbacks using call_user_func_array().
The callback array looks like this:
<?php
$callbacks = array(
// static method call
array('Class_Name', 'method', $param1, $param2, ...),
// instance method call on a registry object
array('registry-key', 'method', $param1, $param2, ...),
// instance method call
array($object, 'method', $param1, $param2, ...),
// function call
array(null, 'function', $param1, $param2, ...),
// file include, as in previous versions of Solar
'path/to/file.php',
);