ZBlogPHP::GetPostList PHP Method

GetPostList() public method

public GetPostList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null ) : array
$select null
$where null
$order null
$limit null
$option null
return array
    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;
    }
ZBlogPHP