static function Create($eStorageType, $ePackType)
 {
     $r = Storage_Create($eStorageType, $ePackType);
     $this->_cPtr = $r;
     return $this;
 }
Beispiel #2
0
 static function Create($eStorageType, $ePackType)
 {
     $r = Storage_Create($eStorageType, $ePackType);
     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;
 }