JHtml/call
From Joomla! Documentation
< API16:JHtmlRevision as of 21:55, 13 May 2013 by JoomlaWikiBot (talk | contribs) (removing red link to edit, no existant pages)
Revision as of 21:55, 13 May 2013 by JoomlaWikiBot (talk | contribs) (removing red link to edit, no existant pages)
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
Function caller method
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax[edit]
static call($function, $args)
Parameter Name | Default Value | Description |
---|---|---|
$function | Function or method to call | |
$args | Arguments to be passed to function |
Defined in[edit]
libraries/joomla/html/html.php
Importing[edit]
jimport( 'joomla.html.html' );
Source Body[edit]
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[edit]
<CodeExamplesForm />