JParameter/bind
From Joomla! Documentation
< API16:JParameterRevision as of 17:52, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description===
Bind data to the parameter.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</...)
Revision as of 17:52, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description===
Bind data to the parameter.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</...)
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]
Bind data to the parameter.
Template:Description:JParameter/bind
Syntax[edit]
bind($data, $group= '_default')
Parameter Name | Default Value | Description |
---|---|---|
$data | $data Array or Object. | |
$group | '_default' |
Returns[edit]
boolean True if the data was successfully bound.
Defined in[edit]
libraries/joomla/html/parameter.php
Importing[edit]
jimport( 'joomla.html.parameter' );
Source Body[edit]
public function bind($data, $group = '_default')
{
if (is_array($data)) {
return $this->loadArray($data, $group);
} elseif (is_object($data)) {
return $this->loadObject($data, $group);
} else {
return $this->loadJSON($data, $group);
}
}
[Edit See Also] Template:SeeAlso:JParameter/bind
Examples[edit]
<CodeExamplesForm />