API16

Difference between revisions of "JHtml/call"

From Joomla! Documentation

< API16:JHtml
(New page: ===Description=== Function caller method <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {...)
 
m (removing red link to edit, no existant pages)
Line 3: Line 3:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JHtml/call|Edit Descripton]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
  
{{Description:JHtml/call}}
+
<! removed transcluded page call, red link never existed >
  
 
===Syntax===
 
===Syntax===
Line 52: Line 52:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JHtml/call|Edit See Also]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JHtml/call}}
+
<! removed transcluded page call, red link never existed >
  
 
===Examples===
 
===Examples===
Line 67: Line 67:
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>
 +
[[Category:Archived pages API16]]

Revision as of 21:55, 13 May 2013

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 />