protected function setPage($page_id)
    {
        $this->data_page = $this->page->get($page_id);

        if (empty($this->data_page)) {
            $this->outputHttpStatus(404);
        }

        $this->controlAccessPage();
        $this->preparePage($this->data_page);
    }
protected function setPage($page_id)
    {
        $this->data_page = $this->page->get($page_id);

        if (empty($this->data_page)) {
            $this->outputHttpStatus(404);
        }

        $this->controlAccessPage();
        $this->preparePage($this->data_page);
    }
protected function setPage ( $ page_id ) { $ this -> data_page = $ this -> page -> get ( $ page_id ) ; if ( empty ( $ this -> data_page ) ) { $ this -> outputHttpStatus ( 404 ) ; } $ this -> controlAccessPage ( ) ; $ this -> preparePage ( $ this -> data_page ) ; }
Sets a page data
@param integer $page_id
Sets a page data