fetch_data(); } /** * Données */ protected function fetch_data() { $this->pages = array(); $query = 'select id_page, page_entity from frbr_pages order by page_entity, page_order, page_name'; $result = pmb_mysql_query($query); if (pmb_mysql_num_rows($result)) { while($row = pmb_mysql_fetch_object($result)) { $this->pages[$row->page_entity][] = new frbr_page($row->id_page); } } } public function get_pages() { return $this->pages; } }