PHP Class Goose\Modules\Extractors\PublishDateExtractor

Inheritance: extends Goose\Modules\AbstractModule, implements Goose\Modules\ModuleInterface, use trait Goose\Traits\ArticleMutatorTrait
Afficher le fichier Open project: scotteh/php-goose

Méthodes publiques

Méthode Description
run ( Goose\Article $article ) : DateTime

Private Methods

Méthode 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 méthode

public run ( Goose\Article $article ) : DateTime
$article Goose\Article
Résultat DateTime