예제 #1
0
 static function GetDefaultStorage()
 {
     $r = GetDefaultStorage();
     $this->_cPtr = $r;
     return $this;
 }
예제 #2
0
 static function GetDefaultStorage()
 {
     $r = GetDefaultStorage();
     if (is_resource($r)) {
         $c = substr(get_resource_type($r), strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3);
         if (!class_exists($c)) {
             return new Storage($r);
         }
         return new $c($r);
     }
     return $r;
 }