PHP 클래스 Yosymfony\Spress\Core\ContentManager\Permalink\PermalinkGenerator

Attributes with special meaning: - permalink: (string) The permalink template. - preserve_path_title: (bool) - date: (string) - categories: (array) Placeholders: - ":path" : /my-page - ":basename" : about-me - ":extension" : html
저자: Victor Puertas ([email protected])
상속: implements Yosymfony\Spress\Core\ContentManager\Permalink\PermalinkGeneratorInterface
파일 보기 프로젝트 열기: spress/spress 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $defaultPermalink = 'pretty', boolean $defaultPreservePathTitle = false, boolean $defaultNoHtmlExtension = false ) Constructor.
getPermalink ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) : Yosymfony\Spress\Core\ContentManager\Permalink\PermalinkInterface Gets a permalink. This method uses the SNAPSHOT_PATH_RELATIVE_AFTER_CONVERT of Item path.

비공개 메소드들

메소드 설명
generatePath ( $template, array $placeholders = [] )
generateUrlPath ( $template, array $placeholders = [] )
getCategoriesPath ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
getDateAttribute ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
getNoHtmlExtensionAttribute ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
getPermalinkAttribute ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
getPlacehoders ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
getPreservePathTitleAttribute ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
getTitleSlugified ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
isCustomCollection ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
isItemWithDate ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
sanitize ( $url )
templateNeedsDate ( $template )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $defaultPermalink = 'pretty', boolean $defaultPreservePathTitle = false, boolean $defaultNoHtmlExtension = false )
$defaultPermalink string Each item's URL are prefixed by "/:collection" if the item are included in a custom collection. "pretty" permalink style: - item: "/:path/:basename" - item with date: "/:categories/:year/:month/:day/:title/" "date" permalink style: - item: "/:path/:basename.:extension" - item with date: "/:categories/:year/:month/:day/:title.:extension" "ordinal" permalink style: - item: "/:path/:basename.:extension" - item with date: "/:categories/:year/:i_day/:title.:extension" "none" permalink style: - item: "/:path/:basename.:extension"
$defaultPreservePathTitle boolean Default value for Preserve-path-title
$defaultNoHtmlExtension boolean Default value for no-html-extension