original_string: public function get_supported_logstores($component) {
  
          $allstores = self::get_store_plugins();
          $enabled = $this->stores;
  
          $function = component_callback_exists($component, 'supports_logstore');
          if (!$function) {
              // The report doesn't define the callback, most probably it doesn't need log stores.
              return false;
          }
  
          $return = array();
          foreach ($allstores as $store => $logclass) {
              $instance = empty($enabled[$store]) ? new $logclass($this) : $enabled[$store];
              if ($function($instance)) {
                  $return[$store] = get_string('pluginname', $store);
              }
          }
          return $return;
      }
code: public function get_supported_logstores($component) {
  
          $allstores = self::get_store_plugins();
          $enabled = $this->stores;
  
          $function = component_callback_exists($component, 'supports_logstore');
          if (!$function) {
              // The report doesn't define the callback, most probably it doesn't need log stores.
              return false;
          }
  
          $return = array();
          foreach ($allstores as $store => $logclass) {
              $instance = empty($enabled[$store]) ? new $logclass($this) : $enabled[$store];
              if ($function($instance)) {
                  $return[$store] = get_string('pluginname', $store);
              }
          }
          return $return;
      }
code_tokens: public function get_supported_logstores ( $ component ) { $ allstores = self :: get_store_plugins ( ) ; $ enabled = $ this -> stores ; $ function = component_callback_exists ( $ component , 'supports_logstore' ) ; if ( ! $ function ) { // The report doesn't define the callback, most probably it doesn't need log stores. return false ; } $ return = array ( ) ; foreach ( $ allstores as $ store => $ logclass ) { $ instance = empty ( $ enabled [ $ store ] ) ? new $ logclass ( $ this ) : $ enabled [ $ store ] ; if ( $ function ( $ instance ) ) { $ return [ $ store ] = get_string ( 'pluginname' , $ store ) ; } } return $ return ; }
docstring: For a given report, returns a list of log stores that are supported.
  
  @param string $component component.
  
  @return false|array list of logstores that support the given report. It returns false if the given $component doesn't
  require logstores.
docstring_tokens: For a given report returns a list of log stores that are supported .