// adds custom callback functions, closures and methods require "pbx_callbacks.php"; $object = new pbx_callbacks();
inject_function_call ';
public $synopsis = 'mixed filter_var ( mixed $variable [, int $filter = FILTER_DEFAULT [, mixed $options ]] )';
function pre_exec_function() { $filter = $this->_filter->filter_arg_value('filter'); $options = $this->_filter->filter_arg_value('options');
if ($filter == FILTER_CALLBACK and isset($options['options'])) { // there is a callback, adds a callback param $this->_function_params->set_param('callback', $options['options']); // updates the callback in case an object or a closuse is returned $options['options'] = $this->_filter->filter_callback('callback'); $this->returned_params['options'] = $options; } } }