Updating Set to use new Xml class.

This commit is contained in:
Juan Basso 2010-07-28 19:53:52 -03:00
parent b862d68016
commit 53f8353f92
2 changed files with 32 additions and 36 deletions

View file

@ -941,9 +941,8 @@ class Set {
*/
public static function reverse($object) {
$out = array();
if (is_a($object, 'XmlNode')) {
$out = $object->toArray();
return $out;
if ($object instanceof SimpleXMLElement) {
return Xml::toArray($object);
} else if (is_object($object)) {
$keys = get_object_vars($object);
if (isset($keys['_name_'])) {