void addSkipPattern(
String
$pattern)
|
|
Adds a regular expression for ignoring files in the class paths.
Files which paths match one of these patterns won't be searched for class definitions.
This is useful for version control paths where files with class definitions exists. Subversion (.svn) and CVS (.CVS) are excluded by default.
Tags:
Parameters:
void autoload(
String
$class)
|
|
PHP will call this method for loading a class.
If this Autoloader doesn't find a class defintion it will only raise an error if it is the last Autoloader in the stack.
Tags:
Parameters:
This Autoloader will be registered at the stack.
After registration this Autoloader is autoloading class definitions.
There is no need to configure this object. All missing members are initialized before registration: -The index would be an AutoloaderIndex_SerializedHashtable_GZ -The parser will be (if PHP has tokenizer support) an AutoloaderFileParser_Tokenizer -The class path is set to the directory of the calling file
http://www.php.net/spl_autoload_register disables __autoload(). This might be unwanted, so register() also adds __autoload() to the stack.
Tags:
void setSkipFilesize(
int
$size)
|
|
Set a file size to ignore files bigger than $size.
The autoloader has to look into every file. Large files like images may result in exceeding the max_execution_time.
Default is set to 1MB. A size of 0 would disable this limitation.
Tags:
Parameters: