PHP Класс Goose\Modules\Extractors\MetaExtractor

Наследование: extends Goose\Modules\AbstractModule, implements Goose\Modules\ModuleInterface, use trait Goose\Traits\ArticleMutatorTrait
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$SPLITTER_CHARS string[]

Открытые методы

Метод Описание
run ( Goose\Article $article )

Приватные методы

Метод Описание
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

Описание методов

run() публичный Метод

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

Описание свойств

$SPLITTER_CHARS защищенное статическое свойство

protected static string[] $SPLITTER_CHARS
Результат string[]