Esempio n. 1
0
 public static function map($data)
 {
     if (!is_null(static::$storagePath)) {
         return parent::map($data);
     }
     $obj = parent::map($data->file);
     $obj->handle = $data;
     return $obj;
 }
Esempio n. 2
0
 /**
  * Registers the MongoDB application plugin resource and initializes it, when a
  * connection is requested. It stores the plugin resource as a static entry in
  * the model.
  */
 public static final function getResource()
 {
     if (null === self::$resource) {
         self::$resource = ZFE_Environment::getResource('Mongo');
     }
     return self::$resource;
 }
Esempio n. 3
0
 /**
  * A simple forwarding function that returns the database from
  * ZFE_Model_Mongo.
  */
 public static final function getDatabase()
 {
     return ZFE_Model_Mongo::getDatabase();
 }