Ejemplo n.º 1
0
 static function import($export_filename, $owner = NULL)
 {
     $rep = @user_config($export_filename . '.0');
     if (!$rep) {
         return NULL;
     }
     $rep = $rep[0];
     $obj = unserialize($rep);
     if ($owner) {
         $obj->__owner = ref($owner);
     }
     $obj->is_imported = TRUE;
     Ref::resolve_back_references();
     return ref($obj);
 }