PHP 클래스 Yosymfony\Spress\Core\ContentManager\Generator\Pagination\PaginationGenerator

Example of URLs generated: /page2 ... How to configure? (Front matter block of the template page): --- layout: "default" generator: "pagination" max_page: 5 provider: "site.posts" permalink: "/page:num" sort_by: "date" sort_type: "descendant" ---
저자: Victor Puertas ([email protected])
상속: implements Yosymfony\Spress\Core\ContentManager\Generator\GeneratorInterface
파일 보기 프로젝트 열기: spress/spress 1 사용 예제들

공개 메소드들

메소드 설명
generateItems ( Yosymfony\Spress\Core\DataSource\ItemInterface $templateItem, array $collections )

보호된 메소드들

메소드 설명
getAttributesResolver ( Yosymfony\Spress\Core\DataSource\ItemInterface $templateItem )
getPagePermalink ( $pageRelativePath )
getPageRelativePath ( $basePath, $template, $page )
getProviderItems ( array $collections, $providerName, $templateItemPath )
providerToCollection ( $providerName )
sortItemsByAttribute ( array $items, $attribute, $sortType )

메소드 상세

generateItems() 공개 메소드

public generateItems ( Yosymfony\Spress\Core\DataSource\ItemInterface $templateItem, array $collections )
$templateItem Yosymfony\Spress\Core\DataSource\ItemInterface
$collections array

getAttributesResolver() 보호된 메소드

protected getAttributesResolver ( Yosymfony\Spress\Core\DataSource\ItemInterface $templateItem )
$templateItem Yosymfony\Spress\Core\DataSource\ItemInterface

getPageRelativePath() 보호된 메소드

protected getPageRelativePath ( $basePath, $template, $page )

getProviderItems() 보호된 메소드

protected getProviderItems ( array $collections, $providerName, $templateItemPath )
$collections array

providerToCollection() 보호된 메소드

protected providerToCollection ( $providerName )

sortItemsByAttribute() 보호된 메소드

protected sortItemsByAttribute ( array $items, $attribute, $sortType )
$items array