public function getPage($stub)
    {
        $this->logger->addNotice(print_r($this->cfg->getAll(), 1));

        $stmtManager = $this->getStatementManager(Simple::class);

        /** @var Select $stmtBuilder */
        $stmtBuilder = $stmtManager->getStatementBuilder(Select::class);

        /** @var PageCollection $collection */
        $collection = $stmtManager->setStatement($stmtBuilder->setWhere(['stub = :stub']))
            ->setArguments(['stub' => $stub])
            ->execute();

        /** @var PageDataModel $c */
        $c = $collection->current();

        return $c;
    }
public function getPage($stub)
    {
        $this->logger->addNotice(print_r($this->cfg->getAll(), 1));

        $stmtManager = $this->getStatementManager(Simple::class);

        /** @var Select $stmtBuilder */
        $stmtBuilder = $stmtManager->getStatementBuilder(Select::class);

        /** @var PageCollection $collection */
        $collection = $stmtManager->setStatement($stmtBuilder->setWhere(['stub = :stub']))
            ->setArguments(['stub' => $stub])
            ->execute();

        /** @var PageDataModel $c */
        $c = $collection->current();

        return $c;
    }
public function getPage ( $ stub ) { $ this -> logger -> addNotice ( print_r ( $ this -> cfg -> getAll ( ) , 1 ) ) ; $ stmtManager = $ this -> getStatementManager ( Simple :: class ) ; /** @var Select $stmtBuilder */ $ stmtBuilder = $ stmtManager -> getStatementBuilder ( Select :: class ) ; /** @var PageCollection $collection */ $ collection = $ stmtManager -> setStatement ( $ stmtBuilder -> setWhere ( [ 'stub = :stub' ] ) ) -> setArguments ( [ 'stub' => $ stub ] ) -> execute ( ) ; /** @var PageDataModel $c */ $ c = $ collection -> current ( ) ; return $ c ; }
Get Page.

@ApiAction()

@param string $stub the url friendly name of the page.

@return PageDataModel
Get Page .