PHP Class Symfony\Component\Templating\TemplateReference

Author: Victor Berchet ([email protected])
Inheritance: implements Symfony\Component\Templating\TemplateReferenceInterface
Datei anzeigen Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Property Type Description
$parameters

Public Methods

Method Description
__construct ( $name = null, $engine = null )
__toString ( )
all ( ) : array Gets the template parameters.
get ( string $name ) : string Gets a template parameter.
getLogicalName ( ) : string Returns the "logical" template name.
getPath ( ) : string Returns the path to the template.
set ( string $name, string $value ) : Symfony\Component\Templating\TemplateReferenceInterface Sets a template parameter.

Method Details

__construct() public method

public __construct ( $name = null, $engine = null )

__toString() public method

public __toString ( )

all() public method

Gets the template parameters.
public all ( ) : array
return array An array of parameters

get() public method

Gets a template parameter.
public get ( string $name ) : string
$name string The parameter name
return string The parameter value

getLogicalName() public method

The template name acts as a unique identifier for the template.
public getLogicalName ( ) : string
return string The template name

getPath() public method

By default, it just returns the template name.
public getPath ( ) : string
return string A path to the template or a resource

set() public method

Sets a template parameter.
public set ( string $name, string $value ) : Symfony\Component\Templating\TemplateReferenceInterface
$name string The parameter name
$value string The parameter value
return Symfony\Component\Templating\TemplateReferenceInterface The TemplateReferenceInterface instance

Property Details

$parameters protected_oe property

protected $parameters