original_string: public function get_page_type_idstring($id) {
          foreach ($this->types as $pagetype) {
              if ((int)$pagetype->typeid === (int)$id) {
                  return $pagetype->idstring;
              }
          }
          return 'unknown';
      }
code: public function get_page_type_idstring($id) {
          foreach ($this->types as $pagetype) {
              if ((int)$pagetype->typeid === (int)$id) {
                  return $pagetype->idstring;
              }
          }
          return 'unknown';
      }
code_tokens: public function get_page_type_idstring ( $ id ) { foreach ( $ this -> types as $ pagetype ) { if ( ( int ) $ pagetype -> typeid === ( int ) $ id ) { return $ pagetype -> idstring ; } } return 'unknown' ; }
docstring: Returns the basic string used to identify a page type provided with an id
  
  This string can be used to instantiate or identify the page type class.
  If the page type id is unknown then 'unknown' is returned
  
  @param int $id
  @return string
docstring_tokens: Returns the basic string used to identify a page type provided with an id