public static function map($data) { if (!is_null(static::$storagePath)) { return parent::map($data); } $obj = parent::map($data->file); $obj->handle = $data; return $obj; }
/** * 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; }
/** * A simple forwarding function that returns the database from * ZFE_Model_Mongo. */ public static final function getDatabase() { return ZFE_Model_Mongo::getDatabase(); }