_table = 'common_admincp_group'; $this->_pk = 'cpgroupid'; parent::__construct(); } public function fetch_by_cpgroupname($name) { return $name ? DB::fetch_first('SELECT * FROM %t WHERE cpgroupname=%s', array($this->_table, $name)) : null; } } ?>