original_string: public function get_supported_reports($logstore) {
  
          $allstores = self::get_store_plugins();
          if (empty($allstores[$logstore])) {
              // Store doesn't exist.
              return array();
          }
  
          $reports = get_plugin_list_with_function('report', 'supports_logstore', 'lib.php');
          $enabled = $this->stores;
  
          if (empty($enabled[$logstore])) {
              // Store is not enabled, init an instance.
              $classname = '\\' . $logstore . '\log\store';
              $instance = new $classname($this);
          } else {
              $instance = $enabled[$logstore];
          }
  
          $return = array();
          foreach ($reports as $report => $fulldir) {
              if (component_callback($report, 'supports_logstore', array($instance), false)) {
                  $return[$report] = get_string('pluginname', $report);
              }
          }
  
          return $return;
      }
code: public function get_supported_reports($logstore) {
  
          $allstores = self::get_store_plugins();
          if (empty($allstores[$logstore])) {
              // Store doesn't exist.
              return array();
          }
  
          $reports = get_plugin_list_with_function('report', 'supports_logstore', 'lib.php');
          $enabled = $this->stores;
  
          if (empty($enabled[$logstore])) {
              // Store is not enabled, init an instance.
              $classname = '\\' . $logstore . '\log\store';
              $instance = new $classname($this);
          } else {
              $instance = $enabled[$logstore];
          }
  
          $return = array();
          foreach ($reports as $report => $fulldir) {
              if (component_callback($report, 'supports_logstore', array($instance), false)) {
                  $return[$report] = get_string('pluginname', $report);
              }
          }
  
          return $return;
      }
code_tokens: public function get_supported_reports ( $ logstore ) { $ allstores = self :: get_store_plugins ( ) ; if ( empty ( $ allstores [ $ logstore ] ) ) { // Store doesn't exist. return array ( ) ; } $ reports = get_plugin_list_with_function ( 'report' , 'supports_logstore' , 'lib.php' ) ; $ enabled = $ this -> stores ; if ( empty ( $ enabled [ $ logstore ] ) ) { // Store is not enabled, init an instance. $ classname = '\\' . $ logstore . '\log\store' ; $ instance = new $ classname ( $ this ) ; } else { $ instance = $ enabled [ $ logstore ] ; } $ return = array ( ) ; foreach ( $ reports as $ report => $ fulldir ) { if ( component_callback ( $ report , 'supports_logstore' , array ( $ instance ) , false ) ) { $ return [ $ report ] = get_string ( 'pluginname' , $ report ) ; } } return $ return ; }
docstring: Get a list of reports that support the given store instance.
  
  @param string $logstore Name of the store.
  
  @return array List of supported reports
docstring_tokens: Get a list of reports that support the given store instance .