public function GetPageList($select = null, $where = null, $order = null, $limit = null, $option = null) { if (empty($select)) { $select = array('*'); } if (empty($where)) { $where = array(); } if (is_array($where)) { array_unshift($where, array('=', 'log_Type', '1')); } $sql = $this->db->sql->Select($this->table['Post'], $select, $where, $order, $limit, $option); $array = $this->GetListType('Post', $sql); foreach ($array as $a) { $this->posts[$a->ID] = $a; } return $array; }