PHP Class Goose\Modules\Extractors\PublishDateExtractor

Inheritance: extends Goose\Modules\AbstractModule, implements Goose\Modules\ModuleInterface, use trait Goose\Traits\ArticleMutatorTrait
ファイルを表示 Open project: scotteh/php-goose

Public Methods

Method Description
run ( Goose\Article $article ) : DateTime

Private Methods

Method Description
getDateFromDublinCore ( ) : DateTime | null Check for and determine dates based on Dublin Core standards.
getDateFromOpenGraph ( ) : DateTime | null Check for and determine dates based on OpenGraph standards.
getDateFromParsely ( ) : DateTime | null Check for and determine dates based on Parsely metadata.
getDateFromSchemaOrg ( ) : DateTime | null Check for and determine dates from Schema.org's datePublished property.
getDateFromURL ( )

Method Details

run() public method

public run ( Goose\Article $article ) : DateTime
$article Goose\Article
return DateTime