20 if ($xml instanceof SimpleXMLElement) {
21 $this->_element = $xml;
24 $disable_load_entities = libxml_disable_entity_loader(
true);
26 $this->_element =
new SimpleXMLElement($xml);
28 libxml_disable_entity_loader($disable_load_entities);
36 return $this->_element->getName();
44 $xmlnsRaw = $this->_element->getNamespaces();
46 foreach ($xmlnsRaw as
$key => $val) {
51 $attrRaw = $this->_element->attributes();
53 foreach ($attrRaw as
$key => $val) {
56 $attr = array_merge((array) $xmlns, (array) $attr);
58 foreach ($attr as
$key => $val) {
68 return (
string) $this->_element;
78 $result[] = new \ElggXMLElement($val);
117 return $this->
getName() !== null;
if($guid==elgg_get_logged_in_user_guid()) $name
__isset($name)
Override isset.
$label
Elgg profile plugin edit default profile action.
__construct($xml)
Creates an from a string or existing SimpleXMLElement.