Class RobotLoader (namespace Nette\Loaders)


Nette auto loader is responsible for loading classes and interfaces.

Object
   |
   --AutoLoader
      |
      --RobotLoader
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Loaders/RobotLoader.php (line 35)
Public Method Summary
RobotLoader
void
addClass (string $class, string $file)
Add class and file name to the list.
void
addDirectory (string|array $path)
Add directory (or directories) to list.
void
rebuild ([bool $force = TRUE])
Rebuilds class list cache.
void
Register autoloader.
void
tryLoad (string $type)
Handles autoloading of classes or interfaces.
Protected Method Summary
protected Cache
protected string
getKey ()
protected bool
Methods Inherited From AutoLoader
getLoaders(), load(), register(), tryLoad(), unregister()
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Variable Summary
string $acceptFiles '*.php, *.php5'

line 44

comma separated wildcards
bool $autoRebuild

line 47

string $ignoreDirs '.*, *.old, *.bak, *.tmp, temp'

line 41

comma separated wildcards
array $scanDirs

line 38


Method Details

line 68

__construct

public RobotLoader __construct ()

Output
RobotLoader  

line 187

addClass

public void addClass (string $class, string $file)

Add class and file name to the list.

Input
string $class
string $file
Output
void  

line 168

addDirectory

public void addDirectory (string|array $path)

Add directory (or directories) to list.

Input
string|array $path
Output
void  
Throws
throws DirectoryNotFoundException if path is not found

line 345

getCache

protected Cache getCache ()

Output
Cache  

line 355

getKey

protected string getKey ()

Output
string  

line 365

isProduction

protected bool isProduction ()

Output
bool  

line 140

rebuild

public void rebuild ([bool $force = TRUE])

Rebuilds class list cache.

Input
bool $force
Output
void  

line 81

register

public void register ()

Register autoloader.

Output
void  

line 105

tryLoad

public void tryLoad (string $type)

Handles autoloading of classes or interfaces.

Input
string $type
Output
void