Updating XML class to use _name_ in place of __identity__ for Set object conversions (Ticket #3696)

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6192 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-12-22 04:46:00 +00:00
parent 10a2a446d3
commit c128439fef

View file

@ -122,8 +122,8 @@ class XMLNode extends Object {
return $objects;
}
if (isset($object->__identity__) && !empty($object->__identity__)) {
$name = $object->__identity__;
if (isset($object->_name_) && !empty($object->_name_)) {
$name = $object->_name_;
} elseif (isset($object->name) && $object->name != null) {
$name = $object->name;
} else {
@ -156,7 +156,7 @@ class XMLNode extends Object {
unset($attributes[$key]);
}
}
unset($attributes['__identity__']);
unset($attributes['_name_']);
$node = new XMLNode($name, $attributes, null, $children);
return $node;