PHP Class Goose\Modules\Extractors\MetaExtractor

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

Protected Properties

Property Type Description
$SPLITTER_CHARS string[]

Public Methods

Method Description
run ( Goose\Article $article )

Private Methods

Method Description
cleanTitle ( string $title ) : string Clean title text
getCanonicalLink ( ) : string If the article has meta canonical link set in the url
getMetaContent ( DOMWrap\Document $doc, string $property, string $value, string $attr = 'content' ) : string
getMetaDescription ( ) : string If the article has meta description set in the source, use that
getMetaKeywords ( ) : string If the article has meta keywords set in the source, use that
getMetaLanguage ( ) : string If the article has meta language set in the source, use that
getNodesByLowercasePropertyValue ( DOMWrap\Document $doc, string $tag, string $property, string $value ) : DOMWrap\NodeList
getOpenGraph ( ) : string[] Retrieve all OpenGraph meta data
getTitle ( ) : string Get article title

Method Details

run() public method

public run ( Goose\Article $article )
$article Goose\Article

Property Details

$SPLITTER_CHARS protected_oe static_oe property

protected static string[] $SPLITTER_CHARS
return string[]