API16:JHtml/call
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Contents |
Description
Function caller method
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
static call($function, $args)
| Parameter Name | Default Value | Description |
|---|---|---|
| $function | Function or method to call | |
| $args | Arguments to be passed to function |
Defined in
libraries/joomla/html/html.php
Importing
jimport( 'joomla.html.html' );
Source Body
private static function call($function, $args) { if (is_callable($function)) { // PHP 5.3 workaround $temp = array(); foreach ($args AS &$arg) { $temp[] = &$arg; } return call_user_func_array($function, $temp); } else { JError::raiseError(500, 'Function not supported.'); return false; } }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
