Joomla CMS
2.5.24 (avec JPlatform 11.4 inclus)
Documentation des API du CMS Joomla en version 2.5 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct ($name, $attrs=array(), $level=0) | |
name () | |
attributes ($attribute=null) | |
data () | |
setData ($data) | |
children () | |
level () | |
addAttribute ($name, $value) | |
removeAttribute ($name) | |
addChild ($name, $attrs=array(), $level=null) | |
removeChild (&$child) | |
getElementByPath ($path) | |
map ($callback, $args=array()) | |
toString ($whitespace=true) | |
Fonctions membres publiques inherited from JObject | |
__construct ($properties=null) | |
__toString () | |
def ($property, $default=null) | |
get ($property, $default=null) | |
getProperties ($public=true) | |
getError ($i=null, $toString=true) | |
getErrors () | |
set ($property, $value=null) | |
setProperties ($properties) | |
setError ($error) | |
toString () |
Attributs publics | |
$_attributes = array() | |
$_name = '' | |
$_data = '' | |
$_children = array() | |
$_level = 0 |
Additional Inherited Members | |
Attributs protégés inherited from JObject | |
$_errors = array() |
JSimpleXMLElement::__construct | ( | $name, | |
$attrs = array() , |
|||
$level = 0 |
|||
) |
Constructor, sets up all the default values
string | $name | The name of the element. |
array | $attrs | A key-value array (optional) of the attributes for the element. |
integer | $level | The level (optional) of the element. |
Références $name, JLog\add(), et JLog\WARNING.
JSimpleXMLElement::addAttribute | ( | $name, | |
$value | |||
) |
Adds an attribute to the element
string | $name | The key |
array | $value | The value for the key |
Références $name, JLog\add(), et JLog\WARNING.
JSimpleXMLElement::addChild | ( | $name, | |
$attrs = array() , |
|||
$level = null |
|||
) |
Adds a direct child to the element
string | $name | The name of the element. |
array | $attrs | An key-value array of the element attributes. |
integer | $level | The level of the element (optional). |
Références $name, JLog\add(), null, et JLog\WARNING.
JSimpleXMLElement::attributes | ( | $attribute = null | ) |
Get the an attribute of the element
string | $attribute | The name of the attribute |
Références $_attributes, JLog\add(), null, et JLog\WARNING.
JSimpleXMLElement::children | ( | ) |
Get the children of the element
Références $_children, JLog\add(), et JLog\WARNING.
JSimpleXMLElement::data | ( | ) |
Get the data of the element
Références $_data, JLog\add(), et JLog\WARNING.
JSimpleXMLElement::getElementByPath | ( | $path | ) |
Get an element in the document by / separated path
string | $path | The / separated path to the element |
Références $parts, $path, JLog\add(), et JLog\WARNING.
JSimpleXMLElement::level | ( | ) |
Get the level of the element
Références $_level, JLog\add(), et JLog\WARNING.
JSimpleXMLElement::map | ( | $callback, | |
$args = array() |
|||
) |
Traverses the tree calling the $callback(JSimpleXMLElement $this, mixed $args=array()) function with each JSimpleXMLElement.
string | $callback | Function name |
array | $args | The arguments (optional) for the function callback. |
Références $i, $n, JLog\add(), et JLog\WARNING.
JSimpleXMLElement::name | ( | ) |
Get the name of the element
Références $_name, JLog\add(), et JLog\WARNING.
JSimpleXMLElement::removeAttribute | ( | $name | ) |
Removes an attribute from the element
string | $name | The name of the attribute. |
Références $name, JLog\add(), et JLog\WARNING.
JSimpleXMLElement::removeChild | ( | & | $child | ) |
Remove the child node.
JSimpleXmlElement | &$child | The child element to remove. |
Références $i, $n, $name, JLog\add(), et JLog\WARNING.
JSimpleXMLElement::setData | ( | $data | ) |
Set the data of the element
string | $data | The CDATA for the element. |
Références $data, JLog\add(), et JLog\WARNING.
JSimpleXMLElement::toString | ( | $whitespace = true | ) |
Return a well-formed XML string based on SimpleXML element
boolean | $whitespace | True if whitespace should be prepended to the string |
Références $_name, JLog\add(), elseif, et JLog\WARNING.
JSimpleXMLElement::$_attributes = array() |
Référencé par attributes().
JSimpleXMLElement::$_children = array() |
Référencé par children().
JSimpleXMLElement::$_data = '' |
Référencé par data().
JSimpleXMLElement::$_level = 0 |
Référencé par level().
JSimpleXMLElement::$_name = '' |
Référencé par name(), et toString().