PHP Класс Symfony\Component\Templating\TemplateReference

Автор: Victor Berchet ([email protected])
Наследование: implements Symfony\Component\Templating\TemplateReferenceInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$parameters

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

__toString() публичный Метод

public __toString ( )

all() публичный Метод

Gets the template parameters.
public all ( ) : array
Результат array An array of parameters

get() публичный Метод

Gets a template parameter.
public get ( string $name ) : string
$name string The parameter name
Результат string The parameter value

getLogicalName() публичный Метод

The template name acts as a unique identifier for the template.
public getLogicalName ( ) : string
Результат string The template name

getPath() публичный Метод

By default, it just returns the template name.
public getPath ( ) : string
Результат string A path to the template or a resource

set() публичный Метод

Sets a template parameter.
public set ( string $name, string $value ) : Symfony\Component\Templating\TemplateReferenceInterface
$name string The parameter name
$value string The parameter value
Результат Symfony\Component\Templating\TemplateReferenceInterface The TemplateReferenceInterface instance

Описание свойств

$parameters защищенное свойство

protected $parameters