public function findPages($unpublished = false)
    {
        $this->makeSelect();
        $this->sql .= " and collection_id is null";

        if (!$unpublished) {
            $this->sql .= " and published_date <= '{$this->today()}'";
        }

        return $this->find();
    }
public function findPages($unpublished = false)
    {
        $this->makeSelect();
        $this->sql .= " and collection_id is null";

        if (!$unpublished) {
            $this->sql .= " and published_date <= '{$this->today()}'";
        }

        return $this->find();
    }
public function findPages ( $ unpublished = false ) { $ this -> makeSelect ( ) ; $ this -> sql .= " and collection_id is null" ; if ( ! $ unpublished ) { $ this -> sql .= " and published_date <= '{$this->today()}'" ; } return $ this -> find ( ) ; }
Find All Pages

Finds all pages, does not include element data
Does not include collections
@param  bool  $unpublished Filter on published pages
@return mixed                     Array | null
Find All Pages