original_string: public static function get_class_for_mode($mode) {
          switch ($mode) {
              case cache_store::MODE_APPLICATION :
                  return 'cache_application';
              case cache_store::MODE_REQUEST :
                  return 'cache_request';
              case cache_store::MODE_SESSION :
                  return 'cache_session';
          }
          throw new coding_exception('Unknown cache mode passed. Must be one of cache_store::MODE_*');
      }
code: public static function get_class_for_mode($mode) {
          switch ($mode) {
              case cache_store::MODE_APPLICATION :
                  return 'cache_application';
              case cache_store::MODE_REQUEST :
                  return 'cache_request';
              case cache_store::MODE_SESSION :
                  return 'cache_session';
          }
          throw new coding_exception('Unknown cache mode passed. Must be one of cache_store::MODE_*');
      }
code_tokens: public static function get_class_for_mode ( $ mode ) { switch ( $ mode ) { case cache_store :: MODE_APPLICATION : return 'cache_application' ; case cache_store :: MODE_REQUEST : return 'cache_request' ; case cache_store :: MODE_SESSION : return 'cache_session' ; } throw new coding_exception ( 'Unknown cache mode passed. Must be one of cache_store::MODE_*' ) ; }
docstring: Returns the class for use as a cache loader for the given mode.
  
  @param int $mode One of cache_store::MODE_
  @return string
  @throws coding_exception
docstring_tokens: Returns the class for use as a cache loader for the given mode .