Class NRobotLoader


Nette auto loader is responsible for loading classes and interfaces.

NObject
   |
   --NAutoLoader
      |
      --NRobotLoader
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Loaders/RobotLoader.php (line 35)
Public Method Summary
NRobotLoader
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 NCache
protected string
getKey ()
protected bool
Methods Inherited From NAutoLoader
getLoaders(), load(), register(), tryLoad(), unregister()
Methods Inherited From NObject
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 NRobotLoader __construct ()

Output
NRobotLoader  

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 NCache getCache ()

Output
NCache  

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