PHP 클래스 Bolt\TemplateChooser

파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Silex\Application $app ) Constructor.
homepage ( Content | Content[] $content ) : string Choose a template for the homepage.
listing ( array $contenttype ) : string Select a template for listing pages.
maintenance ( ) : string Select a template to use for the "maintenance" page.
record ( Content $record, array $data = null ) : string Choose a template for a single record page, e.g.: - '/page/about' - '/entry/lorum-ipsum'
search ( ) : string Select a search template.
taxonomy ( string $taxonomyslug ) : string Select a template for taxonomy.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Silex\Application $app )
$app Silex\Application

homepage() 공개 메소드

Choose a template for the homepage.
public homepage ( Content | Content[] $content ) : string
$content Bolt\Legacy\Content | Bolt\Legacy\Content[]
리턴 string

listing() 공개 메소드

Select a template for listing pages.
public listing ( array $contenttype ) : string
$contenttype array
리턴 string

maintenance() 공개 메소드

Select a template to use for the "maintenance" page.
public maintenance ( ) : string
리턴 string

record() 공개 메소드

Refactor note: Using a FQCN for the hint here as a use statement causes a fatal in the unit tests… 'cause PHP and class_alias() versus namespaces.
public record ( Content $record, array $data = null ) : string
$record Bolt\Legacy\Content
$data array
리턴 string

taxonomy() 공개 메소드

Select a template for taxonomy.
public taxonomy ( string $taxonomyslug ) : string
$taxonomyslug string
리턴 string