status = $this->page_status; } function find_all ($limit = NULL, $offset = NULL) { $this->db->where ('status', $this->page_status); return parent::find_all ($limit, $offset); } function find ($id = NULL) { $this->db->where ('status', $this->page_status); return parent::find ($id); } public function delete_all($ids = NULL) { $this->db->where("status = '{$this->page_status}'"); return parent::delete_all ($ids); } function count_all () { return $this->find_all ()->count (); } function setNaturalOrder ($sort_by = 'html_name') { parent::setNaturalOrder ('name'); } }