english/libraries/loader.php
/**
	 * Directly register a class to the autoload list.
	 *
	 * @param   string  $class  The class name to register.
	 * @param   string  $path   Full path to the file that holds the class to register.
	 * @param   bool    $force  True to overwrite the autoload path value for the class if it already exists.
	 *
	 * @return  void
	 *
	 * @since   11.1
	 */
Directly register a class to the autoload list.
@param   string  $class  The class name to register.
@param   string  $path   Full path to the file that holds the class to register.
@param   bool    $force  True to overwrite the autoload path value for the class if it already exists.

@return  void


Directly register a class to the autoload list . @param string $class The class name to register . @param string $path Full path to the file that holds the class to register . @param bool $force True to overwrite the autoload path value for the class if it already exists . @return void
public static function register($class, $path, $force = true)
	{
		$class = strtolower($class);
		if (!empty($class) && is_file($path)) {
			if (empty(self::$_classes[$class]) || $force) {
				self::$_classes[$class] = $path;
			}
		}
	}
public static function register ( $ class , $ path , $ force = true ) { $ class = strtolower ( $ class ) ; if ( ! empty ( $ class ) && is_file ( $ path ) ) { if ( empty ( self :: $ _classes [ $ class ] ) || $ force ) { self :: $ _classes [ $ class ] = $ path ; } } }
Directly register a class to the autoload list.
Directly register a class to the autoload list .
// Sanitize class name. // Only attempt to register the class if the name and file exist. // Register the class with the autoloader if not already registered or the force flag is set.