original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Set a page data
  @param integer $page_id
docstring_tokens: Set a page data