PHP 클래스 Goose\Modules\Extractors\MetaExtractor

상속: extends Goose\Modules\AbstractModule, implements Goose\Modules\ModuleInterface, use trait Goose\Traits\ArticleMutatorTrait
파일 보기 프로젝트 열기: scotteh/php-goose

보호된 프로퍼티들

프로퍼티 타입 설명
$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[]