function load() { $op = new Anc_Operation($this->db); $op->pa_id = $this->pa_id; $array = $op->get_list($this->from, $this->to, $this->from_poste, $this->to_poste); if (!$array) { $this->has_data = 0; } else { $this->has_data = count($array); } return $array; }