API15

JParameter/bind: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Bind data to the parameter <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </s...
 
m preparing for archive only
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JParameter/bind|Edit Descripton]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>


{{Description:JParameter/bind}}
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 49: Line 49:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JParameter/bind|Edit See Also]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>
{{SeeAlso:JParameter/bind}}
<! removed transcluded page call, red link never existed >


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=bind
  category=bind
  category=JParameter
  category=JParameter
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API15]]

Latest revision as of 01:01, 25 March 2017

Description

Bind data to the parameter

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

bind($data, $group= '_default')
Parameter Name Default Value Description
$data $data Array or Object
$group '_default'

Returns

boolean True if the data was successfully bound public

Defined in

libraries/joomla/html/parameter.php

Importing

jimport( 'joomla.html.parameter' );

Source Body

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->loadINI($data, $group);
        }
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples