PHP 클래스 Symfony\Component\Templating\TemplateReference

저자: Victor Berchet ([email protected])
상속: implements Symfony\Component\Templating\TemplateReferenceInterface
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

보호된 프로퍼티들

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