original_string: protected function get_string() {
          global $CFG;
  
          // Check if we need to process the string.
          if ($this->string === null) {
              // Check the quality of the identifier.
              if ($CFG->debugdeveloper && clean_param($this->identifier, PARAM_STRINGID) === '') {
                  throw new coding_exception('Invalid string identifier. Most probably some illegal character is part of the string identifier. Please check your string definition', DEBUG_DEVELOPER);
              }
  
              // Process the string.
              $this->string = get_string_manager()->get_string($this->identifier, $this->component, $this->a, $this->lang);
              // Debugging feature lets you display string identifier and component.
              if (isset($CFG->debugstringids) && $CFG->debugstringids && optional_param('strings', 0, PARAM_INT)) {
                  $this->string .= ' {' . $this->identifier . '/' . $this->component . '}';
              }
          }
          // Return the string.
          return $this->string;
      }
code: protected function get_string() {
          global $CFG;
  
          // Check if we need to process the string.
          if ($this->string === null) {
              // Check the quality of the identifier.
              if ($CFG->debugdeveloper && clean_param($this->identifier, PARAM_STRINGID) === '') {
                  throw new coding_exception('Invalid string identifier. Most probably some illegal character is part of the string identifier. Please check your string definition', DEBUG_DEVELOPER);
              }
  
              // Process the string.
              $this->string = get_string_manager()->get_string($this->identifier, $this->component, $this->a, $this->lang);
              // Debugging feature lets you display string identifier and component.
              if (isset($CFG->debugstringids) && $CFG->debugstringids && optional_param('strings', 0, PARAM_INT)) {
                  $this->string .= ' {' . $this->identifier . '/' . $this->component . '}';
              }
          }
          // Return the string.
          return $this->string;
      }
code_tokens: protected function get_string ( ) { global $ CFG ; // Check if we need to process the string. if ( $ this -> string === null ) { // Check the quality of the identifier. if ( $ CFG -> debugdeveloper && clean_param ( $ this -> identifier , PARAM_STRINGID ) === '' ) { throw new coding_exception ( 'Invalid string identifier. Most probably some illegal character is part of the string identifier. Please check your string definition' , DEBUG_DEVELOPER ) ; } // Process the string. $ this -> string = get_string_manager ( ) -> get_string ( $ this -> identifier , $ this -> component , $ this -> a , $ this -> lang ) ; // Debugging feature lets you display string identifier and component. if ( isset ( $ CFG -> debugstringids ) && $ CFG -> debugstringids && optional_param ( 'strings' , 0 , PARAM_INT ) ) { $ this -> string .= ' {' . $ this -> identifier . '/' . $ this -> component . '}' ; } } // Return the string. return $ this -> string ; }
docstring: Processes the string.
  
  This function actually processes the string, stores it in the string property
  and then returns it.
  You will notice that this function is VERY similar to the get_string method.
  That is because it is pretty much doing the same thing.
  However as this function is an upgrade it isn't as tolerant to backwards
  compatibility.
  
  @return string
  @throws coding_exception
docstring_tokens: Processes the string .