public function getPages() { $select = array("where" => "`type` >= 'static'"); $obj = new CmsTable($select); $data = $obj->getAllRows(); if (empty($data)) { return false; } rsort($data); return $data; }