public function findCollectionPagesById($collectionId, $published = true)
    {
        $this->makeCollectionPageSelect();
        $this->sql .= ' and c.id = ?';
        $this->bindValues[] = $collectionId;

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

        return $this->find();
    }
public function findCollectionPagesById($collectionId, $published = true)
    {
        $this->makeCollectionPageSelect();
        $this->sql .= ' and c.id = ?';
        $this->bindValues[] = $collectionId;

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

        return $this->find();
    }
public function findCollectionPagesById ( $ collectionId , $ published = true ) { $ this -> makeCollectionPageSelect ( ) ; $ this -> sql .= ' and c.id = ?' ; $ this -> bindValues [ ] = $ collectionId ; if ( $ published ) { $ this -> sql .= " and p.published_date <= '{$this->today()}'" ; } return $ this -> find ( ) ; }
Find Collection Pages by ID

Finds all collection pages
@param  int   $collectionId
@param  bool  $published    Filter on published collection pages
@return mixed               Array | null
Find Collection Pages by ID