Liste de tous les membres
Fonctions membres publiques |
| __construct ($data= '', $path= '') |
| def ($key, $default= '', $group= '_default') |
| setXML (&$xml) |
| bind ($data, $group= '_default') |
| render ($name= 'params', $group= '_default') |
| renderToArray ($name= 'params', $group= '_default') |
| getNumParams ($group= '_default') |
| getGroups () |
| getParams ($name= 'params', $group= '_default') |
| getParam (&$node, $control_name= 'params', $group= '_default') |
| loadSetupFile ($path) |
| loadElement ($type, $new=false) |
| addElementPath ($path) |
| __construct ($data=null) |
| __clone () |
| __toString () |
| def ($key, $default= '') |
| exists ($path) |
| get ($path, $default=null) |
| loadArray ($array) |
| loadObject ($object) |
| loadFile ($file, $format= 'JSON', $options=array()) |
| loadString ($data, $format= 'JSON', $options=array()) |
| merge (&$source) |
| set ($path, $value) |
| toArray () |
| toObject () |
| toString ($format= 'JSON', $options=array()) |
| loadXML ($data, $namespace=null) |
| loadINI ($data, $namespace=null, $options=array()) |
| loadJSON ($data) |
| makeNameSpace ($namespace) |
| getNameSpaces () |
| getValue ($path, $default=null) |
| setValue ($path, $value) |
| loadSetupFile () |
Documentation des constructeurs et destructeur
JParameter::__construct |
( |
|
$data = '' , |
|
|
|
$path = '' |
|
) |
| |
Documentation des fonctions membres
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.
- Paramètres:
-
mixed | $path | Directory (string) or directories (array) to search. |
- Renvoie:
- void
- Obsolète:
- 12.1
- Depuis:
- 11.1
Références $path, et DIRECTORY_SEPARATOR.
JParameter::bind |
( |
|
$data, |
|
|
|
$group = '_default' |
|
) |
| |
Bind data to the parameter.
- Paramètres:
-
mixed | $data | An array or object. |
string | $group | An optional group that the data should bind to. The default group is used if not supplied. |
- Renvoie:
- boolean True if the data was successfully bound, false otherwise.
- Obsolète:
- 12.1
- Depuis:
- 11.1
Références $data, JLog\add(), elseif, et JLog\WARNING.
JParameter::def |
( |
|
$key, |
|
|
|
$default = '' , |
|
|
|
$group = '_default' |
|
) |
| |
Sets a default value if not alreay assigned.
- Paramètres:
-
string | $key | The name of the parameter. |
string | $default | An optional value for the parameter. |
string | $group | An optional group for the parameter. |
- Renvoie:
- string The value set, or the default if the value was not previously set (or null).
- Obsolète:
- 12.1
- Depuis:
- 11.1
Références $key, JLog\add(), et JLog\WARNING.
JParameter::getGroups |
( |
| ) |
|
Get the number of params in each group.
- Renvoie:
- array Array of all group names as key and parameters count as value.
- Obsolète:
- 12.1
- Depuis:
- 11.1
Références $name, JLog\add(), et JLog\WARNING.
JParameter::getNumParams |
( |
|
$group = '_default' | ) |
|
Return the number of parameters in a group.
- Paramètres:
-
string | $group | An optional group. The default group is used if not supplied. |
- Renvoie:
- mixed False if no params exist or integer number of parameters that exist.
- Obsolète:
- 12.1
- Depuis:
- 11.1
Références JLog\add(), et JLog\WARNING.
JParameter::getParam |
( |
& |
$node, |
|
|
|
$control_name = 'params' , |
|
|
|
$group = '_default' |
|
) |
| |
Render a parameter type.
- Paramètres:
-
object | &$node | A parameter XML element. |
string | $control_name | An optional name of the HTML form control. The default is 'params' if not supplied. |
string | $group | An optional group to render. The default group is used if not supplied. |
- Renvoie:
- array Any array of the label, the form element and the tooltip.
- Obsolète:
- 12.1
- Depuis:
- 11.1
Références $type, JText\_(), JLog\add(), et JLog\WARNING.
JParameter::getParams |
( |
|
$name = 'params' , |
|
|
|
$group = '_default' |
|
) |
| |
Render all parameters.
- Paramètres:
-
string | $name | An optional name of the HTML form control. The default is 'params' if not supplied. |
string | $group | An optional group to render. The default group is used if not supplied. |
- Renvoie:
- array An array of all parameters, each as array of the label, the form element and the tooltip.
- Obsolète:
- 12.1
- Depuis:
- 11.1
Références $name, JLog\add(), et JLog\WARNING.
JParameter::loadElement |
( |
|
$type, |
|
|
|
$new = false |
|
) |
| |
JParameter::loadSetupFile |
( |
|
$path | ) |
|
JParameter::render |
( |
|
$name = 'params' , |
|
|
|
$group = '_default' |
|
) |
| |
Render the form control.
- Paramètres:
-
string | $name | An optional name of the HTML form control. The default is 'params' if not supplied. |
string | $group | An optional group to render. The default group is used if not supplied. |
- Renvoie:
- string HTML
- Obsolète:
- 12.1
- Depuis:
- 11.1
Références $desc, $html, $name, $params, JText\_(), JLog\add(), et JLog\WARNING.
JParameter::renderToArray |
( |
|
$name = 'params' , |
|
|
|
$group = '_default' |
|
) |
| |
Render all parameters to an array.
- Paramètres:
-
string | $name | An optional name of the HTML form control. The default is 'params' if not supplied. |
string | $group | An optional group to render. The default group is used if not supplied. |
- Renvoie:
- array
- Obsolète:
- 12.1
- Depuis:
- 11.1
Références $name, JLog\add(), et JLog\WARNING.
JParameter::setXML |
( |
& |
$xml | ) |
|
Documentation des données membres
JParameter::$_elementPath = array() |
|
protected |
JParameter::$_elements = array() |
|
protected |
La documentation de cette classe a été générée à partir du fichier suivant :