_table = 'common_member_profile_history'; $this->_pk = 'hid'; parent::__construct(); } public function fetch_all_by_uid($uid) { return DB::fetch_all('SELECT * FROM %t WHERE uid=%d ORDER BY dateline', array($this->_table, $uid), $this->_pk); } }