original_string: public function mode_mappings($applicationstore, $sessionstore, $requeststore, moodle_url $editurl) {
          $table = new html_table();
          $table->colclasses = array(
              'mode',
              'mapping',
          );
          $table->rowclasses = array(
              'mode_application',
              'mode_session',
              'mode_request'
          );
          $table->head = array(
              get_string('mode', 'cache'),
              get_string('mappings', 'cache'),
          );
          $table->data = array(
              array(get_string('mode_'.cache_store::MODE_APPLICATION, 'cache'), $applicationstore),
              array(get_string('mode_'.cache_store::MODE_SESSION, 'cache'), $sessionstore),
              array(get_string('mode_'.cache_store::MODE_REQUEST, 'cache'), $requeststore)
          );
  
          $html = html_writer::start_tag('div', array('id' => 'core-cache-mode-mappings'));
          $html .= $this->output->heading(get_string('defaultmappings', 'cache'), 3);
          $html .= html_writer::table($table);
          $link = html_writer::link($editurl, get_string('editmappings', 'cache'));
          $html .= html_writer::tag('div', $link, array('class' => 'edit-link'));
          $html .= html_writer::end_tag('div');
          return $html;
      }
code: public function mode_mappings($applicationstore, $sessionstore, $requeststore, moodle_url $editurl) {
          $table = new html_table();
          $table->colclasses = array(
              'mode',
              'mapping',
          );
          $table->rowclasses = array(
              'mode_application',
              'mode_session',
              'mode_request'
          );
          $table->head = array(
              get_string('mode', 'cache'),
              get_string('mappings', 'cache'),
          );
          $table->data = array(
              array(get_string('mode_'.cache_store::MODE_APPLICATION, 'cache'), $applicationstore),
              array(get_string('mode_'.cache_store::MODE_SESSION, 'cache'), $sessionstore),
              array(get_string('mode_'.cache_store::MODE_REQUEST, 'cache'), $requeststore)
          );
  
          $html = html_writer::start_tag('div', array('id' => 'core-cache-mode-mappings'));
          $html .= $this->output->heading(get_string('defaultmappings', 'cache'), 3);
          $html .= html_writer::table($table);
          $link = html_writer::link($editurl, get_string('editmappings', 'cache'));
          $html .= html_writer::tag('div', $link, array('class' => 'edit-link'));
          $html .= html_writer::end_tag('div');
          return $html;
      }
code_tokens: public function mode_mappings ( $ applicationstore , $ sessionstore , $ requeststore , moodle_url $ editurl ) { $ table = new html_table ( ) ; $ table -> colclasses = array ( 'mode' , 'mapping' , ) ; $ table -> rowclasses = array ( 'mode_application' , 'mode_session' , 'mode_request' ) ; $ table -> head = array ( get_string ( 'mode' , 'cache' ) , get_string ( 'mappings' , 'cache' ) , ) ; $ table -> data = array ( array ( get_string ( 'mode_' . cache_store :: MODE_APPLICATION , 'cache' ) , $ applicationstore ) , array ( get_string ( 'mode_' . cache_store :: MODE_SESSION , 'cache' ) , $ sessionstore ) , array ( get_string ( 'mode_' . cache_store :: MODE_REQUEST , 'cache' ) , $ requeststore ) ) ; $ html = html_writer :: start_tag ( 'div' , array ( 'id' => 'core-cache-mode-mappings' ) ) ; $ html .= $ this -> output -> heading ( get_string ( 'defaultmappings' , 'cache' ) , 3 ) ; $ html .= html_writer :: table ( $ table ) ; $ link = html_writer :: link ( $ editurl , get_string ( 'editmappings' , 'cache' ) ) ; $ html .= html_writer :: tag ( 'div' , $ link , array ( 'class' => 'edit-link' ) ) ; $ html .= html_writer :: end_tag ( 'div' ) ; return $ html ; }
docstring: Displays mode mappings
  
  @param string $applicationstore
  @param string $sessionstore
  @param string $requeststore
  @param moodle_url $editurl
  @return string HTML
docstring_tokens: Displays mode mappings