ice framework documentation ice doc v1.10.1
Class Ice

Loader

Methods
  • __construct(array $prefixes) : void
    Loader constructor.
  • register() : void
    Register loader with SPL autoloader stack.
  • addNamespace(string $prefix, string $baseDir, bool $prepend) : void
    Adds a base directory for a namespace prefix.
  • loadClass(string $className) : void
    Loads the class file for a given class name.
  • loadMappedFile(string $prefix, string $relativeClass) : void
    Load the mapped file for a namespace prefix and relative class.
  • requireFile(string $file) : void
    If a file exists, require it from the file system.
Methods Details
  • public function __construct(array $prefixes)

    Loader constructor.
  • public function register()

    Register loader with SPL autoloader stack.
  • public function addNamespace(string $prefix, string $baseDir, bool $prepend)

    Adds a base directory for a namespace prefix.
    be searched first rather than last
  • public function loadClass(string $className)

    Loads the class file for a given class name.
  • protected function loadMappedFile(string $prefix, string $relativeClass)

    Load the mapped file for a namespace prefix and relative class.
  • protected function requireFile(string $file)

    If a file exists, require it from the file system.
  • internal function zephir_init_properties_Ice_Loader()