Methods summary
public
Nette\Templating\Template
|
#
setSource( string $source )
Sets template source code.
Sets template source code.
Parameters
Returns
|
public
string
|
#
getSource( )
Returns template source code.
Returns template source code.
Returns
string
|
public
|
#
render( )
Renders template to output.
Renders template to output.
Implementation of
|
protected static
|
|
public
|
#
save( string $file )
Renders template to file.
Renders template to file.
Parameters
|
public
string
|
#
__toString( )
Renders template to string.
Renders template to string.
Returns
string
|
public
string
|
#
compile( )
Applies filters on template content.
Applies filters on template content.
Returns
string
|
public
|
|
public
Latte\Engine
|
|
public
Nette\Templating\Template
|
#
registerFilter( callable $callback )
Registers callback as template compile-time filter.
Registers callback as template compile-time filter.
Parameters
Returns
|
public
array
|
#
getFilters( )
Returns all registered compile-time filters.
Returns all registered compile-time filters.
Returns
array
|
public
Nette\Templating\Template
|
#
registerHelper( string $name, callable $callback )
Registers callback as template run-time helper.
Registers callback as template run-time helper.
Parameters
- $name
string
- $callback
callable
Returns
|
public
Nette\Templating\Template
|
#
registerHelperLoader( callable $callback )
Registers callback as template run-time helpers loader.
Registers callback as template run-time helpers loader.
Parameters
Returns
|
public
array
|
#
getHelpers( )
Returns all registered run-time helpers.
Returns all registered run-time helpers.
Returns
array
|
public
array
|
#
getHelperLoaders( )
Returns all registered template run-time helper loaders.
Returns all registered template run-time helper loaders.
Returns
array
|
public
mixed
|
#
__call( string $name, array $args )
Call a template run-time helper. Do not call directly.
Call a template run-time helper. Do not call directly.
Parameters
- $name
string helper name
- $args
array arguments
Returns
mixed
Throws
MemberAccessException
Overrides
|
public
Nette\Templating\Template
|
|
public
Nette\Templating\Template
|
#
add( $name, $value )
Adds new template parameter.
Adds new template parameter.
Returns
|
public
Nette\Templating\Template
|
#
setParameters( array $params )
Sets all parameters.
Parameters
Returns
|
public
array
|
#
getParameters( )
Returns array of all parameters.
Returns array of all parameters.
Returns
array
|
public
|
#
__set( string $name, mixed $value )
Sets a template parameter. Do not call directly.
Sets a template parameter. Do not call directly.
Parameters
- $name
string property name
- $value
mixed property value
Throws
MemberAccessException if the property is not defined or is read-only
Overrides
|
public
mixed
&
|
#
__get( string $name )
Returns a template parameter. Do not call directly.
Returns a template parameter. Do not call directly.
Parameters
- $name
string property name
Returns
mixed value
Throws
MemberAccessException if the property is not defined.
Overrides
|
public
boolean
|
#
__isset( string $name )
Determines whether parameter is defined. Do not call directly.
Determines whether parameter is defined. Do not call directly.
Parameters
- $name
string property name
Returns
boolean
Overrides
|
public
|
#
__unset( string $name )
Removes a template parameter. Do not call directly.
Removes a template parameter. Do not call directly.
Parameters
Throws
MemberAccessException
Overrides
|
public
Nette\Templating\Template
|
|
public
Nette\Caching\IStorage
|
|