Airship\Cabin\Hull\Blueprint\CustomPages::getPageById PHP Méthode

getPageById() public méthode

Get information about a custom page.
public getPageById ( integer $pageId ) : array
$pageId integer
Résultat array
    public function getPageById(int $pageId) : array
    {
        $page = $this->db->row("SELECT\n                *\n            FROM\n                airship_custom_page\n            WHERE\n                pageid = ?\n            ", $pageId);
        if (empty($page)) {
            throw new CustomPageNotFoundException();
        }
        return $page;
    }