original_string: public function get_area_title() {
  
          if ($this->get_context()->contextlevel == CONTEXT_SYSTEM) {
              return '';
  
          } else if ($this->get_context()->contextlevel >= CONTEXT_COURSE) {
              $this->ensure_isset(array('context', 'component', 'area'));
              $areas = $this->get_available_areas();
              if (array_key_exists($this->get_area(), $areas)) {
                  return $areas[$this->get_area()];
              } else {
                  debugging('Unknown area!');
                  return '???';
              }
  
          } else {
              throw new coding_exception('Unsupported context level');
          }
      }
code: public function get_area_title() {
  
          if ($this->get_context()->contextlevel == CONTEXT_SYSTEM) {
              return '';
  
          } else if ($this->get_context()->contextlevel >= CONTEXT_COURSE) {
              $this->ensure_isset(array('context', 'component', 'area'));
              $areas = $this->get_available_areas();
              if (array_key_exists($this->get_area(), $areas)) {
                  return $areas[$this->get_area()];
              } else {
                  debugging('Unknown area!');
                  return '???';
              }
  
          } else {
              throw new coding_exception('Unsupported context level');
          }
      }
code_tokens: public function get_area_title ( ) { if ( $ this -> get_context ( ) -> contextlevel == CONTEXT_SYSTEM ) { return '' ; } else if ( $ this -> get_context ( ) -> contextlevel >= CONTEXT_COURSE ) { $ this -> ensure_isset ( array ( 'context' , 'component' , 'area' ) ) ; $ areas = $ this -> get_available_areas ( ) ; if ( array_key_exists ( $ this -> get_area ( ) , $ areas ) ) { return $ areas [ $ this -> get_area ( ) ] ; } else { debugging ( 'Unknown area!' ) ; return '???' ; } } else { throw new coding_exception ( 'Unsupported context level' ) ; } }
docstring: Returns the localized title of the currently set area
  
  @return string
docstring_tokens: Returns the localized title of the currently set area