/**
  * Turns an Object into an Array, even when the class of the Object is no longer available.
  *
  * @since 1.0
  *
  * @param Object $object
  *
  * @return array
  */
 private static function _object_to_array($object)
 {
     $object_array = array();
     $object_name = get_class($object);
     if ('__PHP_Incomplete_Class' == $object_name) {
         foreach ($object as $key => $value) {
             if ('__PHP_Incomplete_Class_Name' == $key) {
                 $object_name = $value;
                 break;
             }
         }
     }
     $object_name = '<' . _x('Object', 'Showing an unserialized object', 'options-pixie') . '> ' . $object_name;
     foreach ($object as $key => $value) {
         if (is_a($value, '__PHP_Incomplete_Class')) {
             $object_array[$object_name][$key] = Options_Pixie_Data_Format::_object_to_array($value);
         } elseif ('__PHP_Incomplete_Class' == get_class($object) && '__PHP_Incomplete_Class_Name' == $key) {
             continue;
         } else {
             $object_array[$object_name][$key] = $value;
         }
     }
     return $object_array;
 }