PHP Class Sculpin\Core\Permalink\SourcePermalinkFactory

Author: Beau Simensen ([email protected])
Inheritance: implements Sculpin\Core\Permalink\SourcePermalinkFactoryInterface
Afficher le fichier Open project: sculpin/sculpin Class Usage Examples

Protected Properties

Свойство Type Description
$defaultPermalink string Default permalink

Méthodes publiques

Méthode Description
__construct ( string $defaultPermalink ) Constructor
create ( Sculpin\Core\Source\SourceInterface $source )

Méthodes protégées

Méthode Description
generatePermalinkPathname ( Sculpin\Core\Source\SourceInterface $source )

Private Methods

Méthode Description
isDatePath ( string $path ) : mixed Does the specified path represent a date?
normalize ( string $param, string $space = '-' ) : string Normalize parameter to be used in human readable URL

Method Details

__construct() public méthode

Constructor
public __construct ( string $defaultPermalink )
$defaultPermalink string Default permalink

create() public méthode

public create ( Sculpin\Core\Source\SourceInterface $source )
$source Sculpin\Core\Source\SourceInterface

generatePermalinkPathname() protected méthode

protected generatePermalinkPathname ( Sculpin\Core\Source\SourceInterface $source )
$source Sculpin\Core\Source\SourceInterface

Property Details