Actions

API15

JParameter/bind

From Joomla! Documentation

< API15:JParameter
Revision as of 17:22, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
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

Bind data to the parameter

[Edit Descripton]

Description:JParameter/bind

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);
        }
}

[Edit See Also] SeeAlso:JParameter/bind

Examples

<CodeExamplesForm />