Esempio n. 1
0
 public function __construct(Model_Db $model)
 {
     $otype = strtolower(substr(get_class($model), 6));
     $oid = (int) $model->getId();
     if ($otype and $oid) {
         parent::__construct($model->getStorage(), array('object_type' => $otype, 'object_id' => $oid));
     }
     if (!$this->isLoaded()) {
         $this->otype = $otype;
         $this->oid = $oid;
     }
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct('t_users', 'localhost_one');
 }
Esempio n. 3
0
 public function __construct($table = NULL, $db_zone_name = NULL)
 {
     parent::__construct($table, $db_zone_name);
     $this->_cache = $this->_getMemcache();
 }