PHP 클래스 TheSeer\Autoload\AutoloadRenderer

저자: Arne Blankerts ([email protected])
파일 보기 프로젝트 열기: theseer/autoload 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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

비공개 메소드들

메소드 설명
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.

메소드 상세

__construct() 공개 메소드

Constructor of AutoloadRenderer class
public __construct ( array $classlist )
$classlist array Array of classes

enableExceptions() 공개 메소드

public enableExceptions ( )

getLineBreak() 공개 메소드

Accessor for current linebreak setting
public getLineBreak ( ) : string
리턴 string

prependAutoloader() 공개 메소드

public prependAutoloader ( )

render() 공개 메소드

Render autoload code into a string
public render ( string $template ) : string
$template string
리턴 string

setBaseDir() 공개 메소드

Setter for the Basedir
public setBaseDir ( string $dir ) : void
$dir string Path to strip from beginning of filenames
리턴 void

setCompat() 공개 메소드

Toggle PHP 5.2 compat mode
public setCompat ( boolean $mode )
$mode boolean Mode to set compat to

setDateTimeFormat() 공개 메소드

Setter to adjust the date/time format output of ___CREATED___
public setDateTimeFormat ( string $frmt )
$frmt string Date/Time format string

setIndent() 공개 메소드

Overwrite default or previously set indenting option
public setIndent ( string $indent ) : void
$indent string Char(s) to use for indenting
리턴 void

setLineBreak() 공개 메소드

Overwrite default or previously set linebreak chars
public setLineBreak ( string $lbs ) : void
$lbs string Code to set linebreak
리턴 void

setTimestamp() 공개 메소드

Setter to use allow usage of fixed date/time for ___CREATED___
public setTimestamp ( integer $time )
$time integer unix timestamp

setVariable() 공개 메소드

Set a variable for use with template code
public setVariable ( string $name, string $value )
$name string Key name (use as ___key___ in template)
$value string Value to use

프로퍼티 상세

$baseDir 보호되어 있는 프로퍼티

An optional base dir to strip for the realpath of the filename
protected string $baseDir
리턴 string

$classes 보호되어 있는 프로퍼티

Associative array of classes (key) and the files (value) they are in
protected array $classes
리턴 array

$compat 보호되어 있는 프로퍼티

Flag to toggle PHP 5.2 compat mode
protected bool $compat
리턴 boolean

$dateformat 보호되어 있는 프로퍼티

Format string supplied to date() for use with ___CREATED___
protected string $dateformat
리턴 string

$indent 보호되어 있는 프로퍼티

Indenting char(s)
protected string $indent
리턴 string

$linebreak 보호되어 있는 프로퍼티

Char(s) used as linebreak
protected string $linebreak
리턴 string

$timestamp 보호되어 있는 프로퍼티

Timestamp of production start
protected int $timestamp
리턴 integer

$variables 보호되어 있는 프로퍼티

Variables for templates
protected array $variables
리턴 array