original_string: public function set_page($page) {
  
          // set the current page
          // make sure we save it as an integer
          $this->_properties['page'] = (int)$page;
  
          // if the number is lower than one
          // make it '1'
          if ($this->_properties['page'] < 1) $this->_properties['page'] = 1;
  
          // set a flag so that the "get_page" method doesn't change this value
          $this->_properties['page_set'] = true;
  
      }
code: public function set_page($page) {
  
          // set the current page
          // make sure we save it as an integer
          $this->_properties['page'] = (int)$page;
  
          // if the number is lower than one
          // make it '1'
          if ($this->_properties['page'] < 1) $this->_properties['page'] = 1;
  
          // set a flag so that the "get_page" method doesn't change this value
          $this->_properties['page_set'] = true;
  
      }
code_tokens: public function set_page ( $ page ) { // set the current page // make sure we save it as an integer $ this -> _properties [ 'page' ] = ( int ) $ page ; // if the number is lower than one // make it '1' if ( $ this -> _properties [ 'page' ] < 1 ) $ this -> _properties [ 'page' ] = 1 ; // set a flag so that the "get_page" method doesn't change this value $ this -> _properties [ 'page_set' ] = true ; }
docstring: Sets the current page.
  
  <code>
  // sets the fifth page as the current page
  $pagination->set_page(5);
  </code>
  
  @param  integer     $page           The page's number.
  
  A number lower than <b>1</b> will be interpreted as <b>1</b>, while a number
  greater than the total number of pages will be interpreted as the last page.
  
  @return void
docstring_tokens: Sets the current page .