original_string: public static function get_all_time_splittings() {
          if (self::$alltimesplittings !== null) {
              return self::$alltimesplittings;
          }
  
          $classes = self::get_analytics_classes('time_splitting');
  
          self::$alltimesplittings = [];
          foreach ($classes as $fullclassname => $classpath) {
              $instance = self::get_time_splitting($fullclassname);
              // We need to check that it is a valid time splitting method, it may be an abstract class.
              if ($instance) {
                  self::$alltimesplittings[$instance->get_id()] = $instance;
              }
          }
  
          return self::$alltimesplittings;
      }
code: public static function get_all_time_splittings() {
          if (self::$alltimesplittings !== null) {
              return self::$alltimesplittings;
          }
  
          $classes = self::get_analytics_classes('time_splitting');
  
          self::$alltimesplittings = [];
          foreach ($classes as $fullclassname => $classpath) {
              $instance = self::get_time_splitting($fullclassname);
              // We need to check that it is a valid time splitting method, it may be an abstract class.
              if ($instance) {
                  self::$alltimesplittings[$instance->get_id()] = $instance;
              }
          }
  
          return self::$alltimesplittings;
      }
code_tokens: public static function get_all_time_splittings ( ) { if ( self :: $ alltimesplittings !== null ) { return self :: $ alltimesplittings ; } $ classes = self :: get_analytics_classes ( 'time_splitting' ) ; self :: $ alltimesplittings = [ ] ; foreach ( $ classes as $ fullclassname => $ classpath ) { $ instance = self :: get_time_splitting ( $ fullclassname ) ; // We need to check that it is a valid time splitting method, it may be an abstract class. if ( $ instance ) { self :: $ alltimesplittings [ $ instance -> get_id ( ) ] = $ instance ; } } return self :: $ alltimesplittings ; }
docstring: Get all available time splitting methods.
  
  @return \core_analytics\local\time_splitting\base[]
docstring_tokens: Get all available time splitting methods .