ZBlogPHP::GetPageList PHP Method

GetPageList() public method

public GetPageList ( 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 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;
    }
ZBlogPHP