original_string: public static function get_store_plugin_summaries() {
          $return = array();
          $plugins = core_component::get_plugin_list_with_file('cachestore', 'lib.php', true);
          foreach ($plugins as $plugin => $path) {
              $class = 'cachestore_'.$plugin;
              $return[$plugin] = array(
                  'name' => get_string('pluginname', 'cachestore_'.$plugin),
                  'requirementsmet' => $class::are_requirements_met(),
                  'instances' => 0,
                  'modes' => array(
                      cache_store::MODE_APPLICATION => ($class::get_supported_modes() & cache_store::MODE_APPLICATION),
                      cache_store::MODE_SESSION => ($class::get_supported_modes() & cache_store::MODE_SESSION),
                      cache_store::MODE_REQUEST => ($class::get_supported_modes() & cache_store::MODE_REQUEST),
                  ),
                  'supports' => array(
                      'multipleidentifiers' => ($class::get_supported_features() & cache_store::SUPPORTS_MULTIPLE_IDENTIFIERS),
                      'dataguarantee' => ($class::get_supported_features() & cache_store::SUPPORTS_DATA_GUARANTEE),
                      'nativettl' => ($class::get_supported_features() & cache_store::SUPPORTS_NATIVE_TTL),
                      'nativelocking' => (in_array('cache_is_lockable', class_implements($class))),
                      'keyawareness' => (array_key_exists('cache_is_key_aware', class_implements($class))),
                  ),
                  'canaddinstance' => ($class::can_add_instance() && $class::are_requirements_met())
              );
          }
  
          $instance = cache_config::instance();
          $stores = $instance->get_all_stores();
          foreach ($stores as $store) {
              $plugin = $store['plugin'];
              if (array_key_exists($plugin, $return)) {
                  $return[$plugin]['instances']++;
              }
          }
  
          return $return;
      }
code: public static function get_store_plugin_summaries() {
          $return = array();
          $plugins = core_component::get_plugin_list_with_file('cachestore', 'lib.php', true);
          foreach ($plugins as $plugin => $path) {
              $class = 'cachestore_'.$plugin;
              $return[$plugin] = array(
                  'name' => get_string('pluginname', 'cachestore_'.$plugin),
                  'requirementsmet' => $class::are_requirements_met(),
                  'instances' => 0,
                  'modes' => array(
                      cache_store::MODE_APPLICATION => ($class::get_supported_modes() & cache_store::MODE_APPLICATION),
                      cache_store::MODE_SESSION => ($class::get_supported_modes() & cache_store::MODE_SESSION),
                      cache_store::MODE_REQUEST => ($class::get_supported_modes() & cache_store::MODE_REQUEST),
                  ),
                  'supports' => array(
                      'multipleidentifiers' => ($class::get_supported_features() & cache_store::SUPPORTS_MULTIPLE_IDENTIFIERS),
                      'dataguarantee' => ($class::get_supported_features() & cache_store::SUPPORTS_DATA_GUARANTEE),
                      'nativettl' => ($class::get_supported_features() & cache_store::SUPPORTS_NATIVE_TTL),
                      'nativelocking' => (in_array('cache_is_lockable', class_implements($class))),
                      'keyawareness' => (array_key_exists('cache_is_key_aware', class_implements($class))),
                  ),
                  'canaddinstance' => ($class::can_add_instance() && $class::are_requirements_met())
              );
          }
  
          $instance = cache_config::instance();
          $stores = $instance->get_all_stores();
          foreach ($stores as $store) {
              $plugin = $store['plugin'];
              if (array_key_exists($plugin, $return)) {
                  $return[$plugin]['instances']++;
              }
          }
  
          return $return;
      }
code_tokens: public static function get_store_plugin_summaries ( ) { $ return = array ( ) ; $ plugins = core_component :: get_plugin_list_with_file ( 'cachestore' , 'lib.php' , true ) ; foreach ( $ plugins as $ plugin => $ path ) { $ class = 'cachestore_' . $ plugin ; $ return [ $ plugin ] = array ( 'name' => get_string ( 'pluginname' , 'cachestore_' . $ plugin ) , 'requirementsmet' => $ class :: are_requirements_met ( ) , 'instances' => 0 , 'modes' => array ( cache_store :: MODE_APPLICATION => ( $ class :: get_supported_modes ( ) & cache_store :: MODE_APPLICATION ) , cache_store :: MODE_SESSION => ( $ class :: get_supported_modes ( ) & cache_store :: MODE_SESSION ) , cache_store :: MODE_REQUEST => ( $ class :: get_supported_modes ( ) & cache_store :: MODE_REQUEST ) , ) , 'supports' => array ( 'multipleidentifiers' => ( $ class :: get_supported_features ( ) & cache_store :: SUPPORTS_MULTIPLE_IDENTIFIERS ) , 'dataguarantee' => ( $ class :: get_supported_features ( ) & cache_store :: SUPPORTS_DATA_GUARANTEE ) , 'nativettl' => ( $ class :: get_supported_features ( ) & cache_store :: SUPPORTS_NATIVE_TTL ) , 'nativelocking' => ( in_array ( 'cache_is_lockable' , class_implements ( $ class ) ) ) , 'keyawareness' => ( array_key_exists ( 'cache_is_key_aware' , class_implements ( $ class ) ) ) , ) , 'canaddinstance' => ( $ class :: can_add_instance ( ) && $ class :: are_requirements_met ( ) ) ) ; } $ instance = cache_config :: instance ( ) ; $ stores = $ instance -> get_all_stores ( ) ; foreach ( $ stores as $ store ) { $ plugin = $ store [ 'plugin' ] ; if ( array_key_exists ( $ plugin , $ return ) ) { $ return [ $ plugin ] [ 'instances' ] ++ ; } } return $ return ; }
docstring: Returns an array of information about plugins, everything a renderer needs.
  @return array
docstring_tokens: Returns an array of information about plugins everything a renderer needs .