name = $name; } else { throw new Exception('The property "'.get_class($this).'->name" is empty'); } } public function fetch_list($order = 'DESC', $start = 0, $limit = 0) { return C::t('common_rank')->fetch_list($this->name, $order, $limit); } public function fetch_rank($key) { return C::t('common_rank')->fetch_rank($this->name, $key); } public function set($key, $value) { return C::t('common_rank')->insert($this->name, $key, $value); } public function inc($key, $value) { return C::t('common_rank')->inc($this->name, $key, $value); } public function dec($key, $value) { return C::t('common_rank')->dec($this->name, $key, $value); } public function clear() { return C::t('common_rank')->delete($this->name); } public function rm($key) { return $key ? C::t('common_rank')->delete($this->name, $key) : false; } } ?>