mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-08 20:42:42 +00:00
Updating Set to use new Xml class.
This commit is contained in:
parent
b862d68016
commit
53f8353f92
2 changed files with 32 additions and 36 deletions
|
@ -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_'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue