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

        if (is_numeric($page_id)) {

            $conditions = array(
                'language' => 'und',
                'page_id' => $page_id
            );

            $this->data_page = $this->page->get($conditions);

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

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

        if (is_numeric($page_id)) {

            $conditions = array(
                'language' => 'und',
                'page_id' => $page_id
            );

            $this->data_page = $this->page->get($conditions);

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

            $this->preparePage($this->data_page);
        }
    }
protected function setPage ( $ page_id ) { $ this -> data_page = array ( ) ; if ( is_numeric ( $ page_id ) ) { $ conditions = array ( 'language' => 'und' , 'page_id' => $ page_id ) ; $ this -> data_page = $ this -> page -> get ( $ conditions ) ; if ( empty ( $ this -> data_page ) ) { $ this -> outputHttpStatus ( 404 ) ; } $ this -> preparePage ( $ this -> data_page ) ; } }
Set a page data
@param integer $page_id
Set a page data