Class TemplateFile
ProcessWire TemplateFile
A template file that will be loaded and executed as PHP, and it's output returned
ProcessWire 2.x Copyright (C) 2010 by Ryan Cramer Licensed under GNU/GPL v2, see LICENSE.TXT
- Wire implements TrackChanges
-
WireData
implements
IteratorAggregate
-
TemplateFile
Located at core/TemplateFile.php
public
|
|
public
|
#
setFilename( string $filename )
Sets the template file name, replacing whatever was set in the constructor |
public
|
|
public
string
|
|
public
array
|
|
public
mixed
|
|
public
|
#
__toString( )
The string value of a TemplateFile is it's PHP template filename OR it's class name if no filename is set |
__get(),
__isset(),
__set(),
__unset(),
getIterator(),
has(),
isEqual(),
remove(),
set(),
setArray()
|
_(),
___changed(),
__call(),
_n(),
_x(),
addHook(),
addHookAfter(),
addHookBefore(),
addHookProperty(),
className(),
error(),
fuel(),
getAllFuel(),
getChanges(),
getFuel(),
getHooks(),
isChanged(),
isHooked(),
message(),
removeHook(),
resetTrackChanges(),
runHooks(),
setFuel(),
setTrackChanges(),
trackChange(),
trackChanges(),
untrackChange(),
useFuel()
|
protected
|
$filename | |
#
The full path and filename to the PHP template file |
protected
|
$savedDir | |
#
The saved directory location before render() was called |
protected static
array
|
$globals | array() |
#
Variables that will be applied globally to this and all other TemplateFile instances |
$data
|
$changes,
$defaultHookOptions,
$fuel,
$hookMethodCache,
$localHooks,
$staticHooks,
$trackChanges,
$useFuel
|