コード例 #1
0
 function &get_object_vars($object)
 {
     $ar1 = get_class_vars(get_class($object));
     $ar2 = get_class_vars(get_parent_class($object));
     $ar = DOCMAN_Utils::array_diff_key($ar1, $ar2);
     $object_vars = new stdClass();
     foreach ($ar as $key => $value) {
         $object_vars->{$key} = $object->{$key};
     }
     return $object_vars;
 }