protected function _fetchAllIds(Garp_Model_Db $model) { $fields = array('id'); $select = $model->select()->from($model->getName(), $fields); $records = $model->fetchAll($select); return $records; }
/** * Increment the version to invalidate a given model's cache. * * @param Garp_Model_Db $model * @return Void */ protected static function _incrementMemcacheVersion(Garp_Model_Db $model) { $cache = new Garp_Cache_Store_Versioned($model->getName() . '_version'); $cache->incrementVersion(); }
/** * Negotiate between joint view and actual table name. * * @param Garp_Model_Db $model * @return string */ protected function _getTableName($model) { if (!$this->usesJointView()) { return $model->getName(); } return $model->getJointView() ?: $model->getName(); }