Property | Type | Description | |
---|---|---|---|
$baseDir | string | An optional base dir to strip for the realpath of the filename | |
$classes | array | Associative array of classes (key) and the files (value) they are in | |
$compat | boolean | Flag to toggle PHP 5.2 compat mode | |
$dateformat | string | Format string supplied to date() for use with ___CREATED___ | |
$indent | string | Indenting char(s) | |
$linebreak | string | Char(s) used as linebreak | |
$timestamp | integer | Timestamp of production start | |
$variables | array | Variables for templates |
Method | Description | |
---|---|---|
__construct ( array $classlist ) | Constructor of AutoloadRenderer class | |
enableExceptions ( ) | ||
getLineBreak ( ) : string | Accessor for current linebreak setting | |
prependAutoloader ( ) | ||
render ( string $template ) : string | Render autoload code into a string | |
setBaseDir ( string $dir ) : void | Setter for the Basedir | |
setCompat ( boolean $mode ) | Toggle PHP 5.2 compat mode | |
setDateTimeFormat ( string $frmt ) | Setter to adjust the date/time format output of ___CREATED___ | |
setIndent ( string $indent ) : void | Overwrite default or previously set indenting option | |
setLineBreak ( string $lbs ) : void | Overwrite default or previously set linebreak chars | |
setTimestamp ( integer $time ) | Setter to use allow usage of fixed date/time for ___CREATED___ | |
setVariable ( string $name, string $value ) | Set a variable for use with template code |
Method | Description | |
---|---|---|
resolvePath ( string $fname ) : string | Resolve relative location of file path to basedir if one is set and fix potential broken windows pathnames when run on windows. |
public __construct ( array $classlist ) | ||
$classlist | array | Array of classes |
public getLineBreak ( ) : string | ||
return | string |
public setBaseDir ( string $dir ) : void | ||
$dir | string | Path to strip from beginning of filenames |
return | void |
public setDateTimeFormat ( string $frmt ) | ||
$frmt | string | Date/Time format string |
public setLineBreak ( string $lbs ) : void | ||
$lbs | string | Code to set linebreak |
return | void |
public setTimestamp ( integer $time ) | ||
$time | integer | unix timestamp |
public setVariable ( string $name, string $value ) | ||
$name | string | Key name (use as ___key___ in template) |
$value | string | Value to use |
protected string $baseDir | ||
return | string |
protected array $classes | ||
return | array |
protected string $dateformat | ||
return | string |