API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JParameter::__construct | ( | $ | data, |
$ | path = '' |
||
) |
JParameter::addElementPath | ( | $ | path | ) |
Add a directory where JParameter should search for element types
You may either pass a string or an array of directories.
JParameter will be searching for a element type in the same order you added them. If the parameter type cannot be found in the custom folders, it will look in JParameter/types.
public
string|array | directory or directories to search. |
Références $path.
JParameter::bind | ( | $ | data, |
$ | group = '_default' |
||
) |
JParameter::def | ( | $ | key, |
$ | default = '' , |
||
$ | group = '_default' |
||
) |
Sets a default value if not alreay assigned
public
string | The name of the param |
string | The value of the parameter |
string | The parameter group to modify |
JParameter::get | ( | $ | key, |
$ | default = '' , |
||
$ | group = '_default' |
||
) |
Get a value
public
string | The name of the param |
mixed | The default value if not found |
JParameter::getGroups | ( | ) |
Get the number of params in each group
public
Références $name.
JParameter::getNumParams | ( | $ | group = '_default' | ) |
Return number of params to render
public
JParameter::getParam | ( | &$ | node, |
$ | control_name = 'params' , |
||
$ | group = '_default' |
||
) |
Render a parameter type
object | A param tag node |
string | The control name |
Références $type, et JText::_().
JParameter::getParams | ( | $ | name = 'params' , |
$ | group = '_default' |
||
) |
Render all parameters
public
string | The name of the control, or the default text area if a setup file is not found |
Références $name.
& JParameter::loadElement | ( | $ | type, |
$ | new = false |
||
) |
Loads a element type
public
string | elementType |
Références $file, $type, JFilterInput::clean(), JPath::find(), et jimport().
JParameter::loadSetupFile | ( | $ | path | ) |
Loads an xml setup file and parses it
public
string | path to xml setup file |
Références $params, $path, et JFactory::getXMLParser().
JParameter::render | ( | $ | name = 'params' , |
$ | group = '_default' |
||
) |
Render
public
string | The name of the control, or the default text area if a setup file is not found |
Références $desc, $name, $params, et JText::_().
JParameter::renderToArray | ( | $ | name = 'params' , |
$ | group = '_default' |
||
) |
Render all parameters to an array
public
string | The name of the control, or the default text area if a setup file is not found |
Références $name.
JParameter::set | ( | $ | key, |
$ | value = '' , |
||
$ | group = '_default' |
||
) |
Set a value
public
string | The name of the param |
string | The value of the parameter |
JParameter::setXML | ( | &$ | xml | ) |
JParameter::$_elementPath = array() |
JParameter::$_elements = array() |
JParameter::$_raw = null |
JParameter::$_xml = null |