Class NRobotLoader
Nette auto loader is responsible for loading classes and interfaces.
- NObject
-
NAutoLoader
-
NRobotLoader
public
|
#
__construct(
)
|
public
void
|
#
register(
)
Register autoloader. Register autoloader. |
public
void
|
#
tryLoad(
string
$type
)
Handles autoloading of classes or interfaces. Handles autoloading of classes or interfaces. Parameters$type string |
public
void
|
#
rebuild(
)
Rebuilds class list cache. Rebuilds class list cache. |
public
array
|
#
getIndexedClasses(
)
Returnsarray of class => filename
|
public
void
|
#
addDirectory(
string|array
$path
)
Add directory (or directories) to list. Add directory (or directories) to list. Parameters$path string|arrayThrows
DirectoryNotFoundException if path is not found
|
public
NRobotLoader
|
#
setCacheStorage(
ICacheStorage
$storage
)
Parameters$storage NCache |
public
NCache
|
#
getCacheStorage(
)
|
protected
NCache
|
#
getCache(
)
|
protected
string
|
#
getKey(
)
|
Methods Inherited From NAutoLoader
Methods Inherited From NObject
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
array
|
$scanDirs | NULL |
# |
string
|
$ignoreDirs | '.*, *.old, *.bak, *.tmp, temp' |
comma separated wildcards # |
string
|
$acceptFiles | '*.php, *.php5' |
comma separated wildcards # |
bool
|
$autoRebuild | false |
# |
Properties Inherited From NAutoLoader
$count