PHP Class Sculpin\Core\Permalink\SourcePermalinkFactory

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

Protected Properties

Property Type Description
$defaultPermalink string Default permalink

Public Methods

Method Description
__construct ( string $defaultPermalink ) Constructor
create ( Sculpin\Core\Source\SourceInterface $source )

Protected Methods

Method Description
generatePermalinkPathname ( Sculpin\Core\Source\SourceInterface $source )

Private Methods

Method 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 method

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

create() public method

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

generatePermalinkPathname() protected method

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

Property Details