Class RobotLoader (namespace Nette\Loaders)


Nette auto loader is responsible for loading classes and interfaces.

Object
   |
   --AutoLoader
      |
      --RobotLoader
Copyright: Copyright (c) 2004, 2010 David Grudl
Located: in /Loaders/RobotLoader.php (line 21)
Public Method Summary
RobotLoader
void
addDirectory (string|array $path)
Add directory (or directories) to list.
array
void
rebuild ()
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 30

comma separated wildcards
bool $autoRebuild

line 33

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

line 27

comma separated wildcards
array $scanDirs

line 24


Method Details

line 54

__construct

public RobotLoader __construct ()

Output
RobotLoader  

line 176

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 366

getCache

protected Cache getCache ()

Output
Cache  

line 159

getIndexedClasses

public array getIndexedClasses ()

Output
array of class => filename

line 376

getKey

protected string getKey ()

Output
string  

line 386

isProduction

protected bool isProduction ()

Output
bool  

line 129

rebuild

public void rebuild ()

Rebuilds class list cache.

Output
void  

line 67

register

public void register ()

Register autoloader.

Output
void  

line 91

tryLoad

public void tryLoad (string $type)

Handles autoloading of classes or interfaces.

Input
string $type
Output
void