How to get a value from an incomplete class object in PHP? -
How to get a value from an incomplete class object in PHP? -
i have serialized php object, looks next when unserialize it:
__php_incomplete_class object ( [__php_incomplete_class_name] => model_baubeschreibung [prototype:persistence_table:private] => array ( [model_baubeschreibung] => array ( [table] => rp_baubeschreibung // ... more stuff here ) ) [table:persistence_table:private] => rp_baubeschreibung [id:persistence_table:private] => 170 [properties:persistence_table:private] => array ( [name] => name [description] => description [category] => category ) [references:persistence_table:private] => array ( // more stuff here ) [objects:persistence_table:private] => array ( ) [callback:persistence_table:private] => array ( ) [state:persistence_table:private] => 2 );
i don't have alternative load class object refers to.
is there way can values 'my name
', 'my description
', 'my category
', , id (here: 170) object? @ best without preg_match. tried looping through object didn't work.
you need include class definition before unserializing object. utilize proper autoloader or include class.
when it. casted object of class.
php class object
Comments
Post a Comment