original_string: public function store_plugin_summaries(array $plugins) {
          $table = new html_table();
          $table->head = array(
              get_string('plugin', 'cache'),
              get_string('storeready', 'cache'),
              get_string('stores', 'cache'),
              get_string('modes', 'cache'),
              get_string('supports', 'cache'),
              get_string('actions', 'cache'),
          );
          $table->colclasses = array(
              'plugin',
              'storeready',
              'stores',
              'modes',
              'supports',
              'actions'
          );
          $table->data = array();
  
          foreach ($plugins as $name => $plugin) {
              $actions = cache_administration_helper::get_store_plugin_actions($name, $plugin);
  
              $modes = array();
              foreach ($plugin['modes'] as $mode => $enabled) {
                  if ($enabled) {
                      $modes[] = get_string('mode_'.$mode, 'cache');
                  }
              }
  
              $supports = array();
              foreach ($plugin['supports'] as $support => $enabled) {
                  if ($enabled) {
                      $supports[] = get_string('supports_'.$support, 'cache');
                  }
              }
  
              $htmlactions = array();
              foreach ($actions as $action) {
                  $htmlactions[] = $this->output->action_link($action['url'], $action['text']);
              }
  
              $row = new html_table_row(array(
                  $plugin['name'],
                  ($plugin['requirementsmet']) ? $this->output->pix_icon('i/valid', '1') : '',
                  $plugin['instances'],
                  join(', ', $modes),
                  join(', ', $supports),
                  join(', ', $htmlactions)
              ));
  
              $row->attributes['class'] = 'plugin-'.$name;
              $table->data[] = $row;
          }
  
          $html  = html_writer::start_tag('div', array('id' => 'core-cache-plugin-summaries'));
          $html .= $this->output->heading(get_string('pluginsummaries', 'cache'), 3);
          $html .= html_writer::table($table);
          $html .= html_writer::end_tag('div');
          return $html;
      }
code: public function store_plugin_summaries(array $plugins) {
          $table = new html_table();
          $table->head = array(
              get_string('plugin', 'cache'),
              get_string('storeready', 'cache'),
              get_string('stores', 'cache'),
              get_string('modes', 'cache'),
              get_string('supports', 'cache'),
              get_string('actions', 'cache'),
          );
          $table->colclasses = array(
              'plugin',
              'storeready',
              'stores',
              'modes',
              'supports',
              'actions'
          );
          $table->data = array();
  
          foreach ($plugins as $name => $plugin) {
              $actions = cache_administration_helper::get_store_plugin_actions($name, $plugin);
  
              $modes = array();
              foreach ($plugin['modes'] as $mode => $enabled) {
                  if ($enabled) {
                      $modes[] = get_string('mode_'.$mode, 'cache');
                  }
              }
  
              $supports = array();
              foreach ($plugin['supports'] as $support => $enabled) {
                  if ($enabled) {
                      $supports[] = get_string('supports_'.$support, 'cache');
                  }
              }
  
              $htmlactions = array();
              foreach ($actions as $action) {
                  $htmlactions[] = $this->output->action_link($action['url'], $action['text']);
              }
  
              $row = new html_table_row(array(
                  $plugin['name'],
                  ($plugin['requirementsmet']) ? $this->output->pix_icon('i/valid', '1') : '',
                  $plugin['instances'],
                  join(', ', $modes),
                  join(', ', $supports),
                  join(', ', $htmlactions)
              ));
  
              $row->attributes['class'] = 'plugin-'.$name;
              $table->data[] = $row;
          }
  
          $html  = html_writer::start_tag('div', array('id' => 'core-cache-plugin-summaries'));
          $html .= $this->output->heading(get_string('pluginsummaries', 'cache'), 3);
          $html .= html_writer::table($table);
          $html .= html_writer::end_tag('div');
          return $html;
      }
code_tokens: public function store_plugin_summaries ( array $ plugins ) { $ table = new html_table ( ) ; $ table -> head = array ( get_string ( 'plugin' , 'cache' ) , get_string ( 'storeready' , 'cache' ) , get_string ( 'stores' , 'cache' ) , get_string ( 'modes' , 'cache' ) , get_string ( 'supports' , 'cache' ) , get_string ( 'actions' , 'cache' ) , ) ; $ table -> colclasses = array ( 'plugin' , 'storeready' , 'stores' , 'modes' , 'supports' , 'actions' ) ; $ table -> data = array ( ) ; foreach ( $ plugins as $ name => $ plugin ) { $ actions = cache_administration_helper :: get_store_plugin_actions ( $ name , $ plugin ) ; $ modes = array ( ) ; foreach ( $ plugin [ 'modes' ] as $ mode => $ enabled ) { if ( $ enabled ) { $ modes [ ] = get_string ( 'mode_' . $ mode , 'cache' ) ; } } $ supports = array ( ) ; foreach ( $ plugin [ 'supports' ] as $ support => $ enabled ) { if ( $ enabled ) { $ supports [ ] = get_string ( 'supports_' . $ support , 'cache' ) ; } } $ htmlactions = array ( ) ; foreach ( $ actions as $ action ) { $ htmlactions [ ] = $ this -> output -> action_link ( $ action [ 'url' ] , $ action [ 'text' ] ) ; } $ row = new html_table_row ( array ( $ plugin [ 'name' ] , ( $ plugin [ 'requirementsmet' ] ) ? $ this -> output -> pix_icon ( 'i/valid' , '1' ) : '' , $ plugin [ 'instances' ] , join ( ', ' , $ modes ) , join ( ', ' , $ supports ) , join ( ', ' , $ htmlactions ) ) ) ; $ row -> attributes [ 'class' ] = 'plugin-' . $ name ; $ table -> data [ ] = $ row ; } $ html = html_writer :: start_tag ( 'div' , array ( 'id' => 'core-cache-plugin-summaries' ) ) ; $ html .= $ this -> output -> heading ( get_string ( 'pluginsummaries' , 'cache' ) , 3 ) ; $ html .= html_writer :: table ( $ table ) ; $ html .= html_writer :: end_tag ( 'div' ) ; return $ html ; }
docstring: Displays plugin summaries
  
  @param array $plugins
  @return string HTML
docstring_tokens: Displays plugin summaries