![]() |
- Developper API
2.0.5
|
A Property is a data structure that is made up of:
More...
Public Member Functions | |
__construct ($name, $label, $value, $language="") | |
Property constructor. | |
getName () | |
Return the name of the property or false if empty. | |
getLabel () | |
Return the label of the property or false if empty. | |
getValue () | |
Return the value of the property or false if empty. | |
getLanguage () | |
Return the language of the property or false if empty. | |
__toString () | |
Return the property values as a String. | |
Static Public Member Functions | |
static | getPropertyFromSXMLElement ($node) |
Build a property from a SimpleXMLElement. It returns false if the node doesn t contain a property. | |
static | isSXMLNodeProperty ($node) |
Check whether or not the SimpleXMLElement node is a property. |
A Property is a data structure that is made up of:
__construct | ( | $ | name, |
$ | label, | ||
$ | value, | ||
$ | language = "" |
||
) |
Property constructor.
String | name of the node containing the property |
String | label text content of the node label (if exists) |
String | value text content of value node if exists otherwise it contains the direct text value of the node |
String | language text content of language node if exists |
Definition at line 39 of file Property.php.
__toString | ( | ) |
getLabel | ( | ) | [final] |
Return the label of the property or false if empty.
Definition at line 60 of file Property.php.
getLanguage | ( | ) | [final] |
Return the language of the property or false if empty.
Definition at line 78 of file Property.php.
getName | ( | ) | [final] |
Return the name of the property or false if empty.
Definition at line 51 of file Property.php.
static getPropertyFromSXMLElement | ( | $ | node | ) | [static, final] |
Build a property from a SimpleXMLElement. It returns false if the node doesn t contain a property.
SimpleXmlElement | node |
Definition at line 97 of file Property.php.
getValue | ( | ) | [final] |
Return the value of the property or false if empty.
Definition at line 69 of file Property.php.
static isSXMLNodeProperty | ( | $ | node | ) | [static, final] |
Check whether or not the SimpleXMLElement node is a property.
SimpleXmlElement | node |
Definition at line 151 of file Property.php.