ice framework documentation ice doc v1.6.2
Class Ice

Loader

Methods
  • 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 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()