public function GetPostList($select = null, $where = null, $order = null, $limit = null, $option = null) { if (empty($select)) { $select = array('*'); } if (empty($where)) { $where = array(); } $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; }