PHP 클래스 Arcanedev\SeoHelper\Entities\Title

저자: ARCANEDEV ([email protected])
상속: implements Arcanedev\SeoHelper\Contracts\Entities\Title, use trait Arcanedev\Support\Traits\Configurable
파일 보기 프로젝트 열기: arcanedev/seo-helper

보호된 프로퍼티들

프로퍼티 타입 설명
$max integer The maximum title length.
$separator string The title separator.
$siteName string The site name.
$title string The title content.
$titleFirst boolean Display the title first.

공개 메소드들

메소드 설명
__construct ( array $configs = [] ) Make the Title instance.
__toString ( ) : string Render the tag.
getMax ( ) : integer Get title max length.
getSeparator ( ) : string Get title separator.
getSiteName ( ) : string Get site name.
getTitleOnly ( ) : string Get title only (without site name or separator).
isTitleFirst ( ) : boolean Check if title is first.
make ( string $title, string $siteName = '', string $separator = '-' ) : Title Make a Title instance.
render ( ) : string Render the tag.
set ( string $title ) : Title Set title.
setFirst ( ) : Title Set title first.
setLast ( ) : Title Set title last.
setMax ( integer $max ) : Title Set title max length.
setSeparator ( string $separator ) : Title Set title separator.
setSiteName ( string $siteName ) : Title Set site name.

보호된 메소드들

메소드 설명
renderSeparator ( ) : string Render the separator.

비공개 메소드들

메소드 설명
checkMax ( integer $max ) Check title max length.
checkTitle ( string &$title ) Check title.
hasSiteName ( ) : boolean Check if site name exists.
init ( ) Start the engine.
prepareTitleOutput ( string $output ) : string Prepare the title output.
renderTitleFirst ( string $separator ) : string Render title first.
renderTitleLast ( string $separator ) : string Render title last.
switchPosition ( boolean $first ) : Title Switch title position.

메소드 상세

__construct() 공개 메소드

Make the Title instance.
public __construct ( array $configs = [] )
$configs array

__toString() 공개 메소드

Render the tag.
public __toString ( ) : string
리턴 string

getMax() 공개 메소드

Get title max length.
public getMax ( ) : integer
리턴 integer

getSeparator() 공개 메소드

Get title separator.
public getSeparator ( ) : string
리턴 string

getSiteName() 공개 메소드

Get site name.
public getSiteName ( ) : string
리턴 string

getTitleOnly() 공개 메소드

Get title only (without site name or separator).
public getTitleOnly ( ) : string
리턴 string

isTitleFirst() 공개 메소드

Check if title is first.
public isTitleFirst ( ) : boolean
리턴 boolean

make() 공개 정적인 메소드

Make a Title instance.
public static make ( string $title, string $siteName = '', string $separator = '-' ) : Title
$title string
$siteName string
$separator string
리턴 Title

render() 공개 메소드

Render the tag.
public render ( ) : string
리턴 string

renderSeparator() 보호된 메소드

Render the separator.
protected renderSeparator ( ) : string
리턴 string

set() 공개 메소드

Set title.
public set ( string $title ) : Title
$title string
리턴 Title

setFirst() 공개 메소드

Set title first.
public setFirst ( ) : Title
리턴 Title

setLast() 공개 메소드

Set title last.
public setLast ( ) : Title
리턴 Title

setMax() 공개 메소드

Set title max length.
public setMax ( integer $max ) : Title
$max integer
리턴 Title

setSeparator() 공개 메소드

Set title separator.
public setSeparator ( string $separator ) : Title
$separator string
리턴 Title

setSiteName() 공개 메소드

Set site name.
public setSiteName ( string $siteName ) : Title
$siteName string
리턴 Title

프로퍼티 상세

$max 보호되어 있는 프로퍼티

The maximum title length.
protected int $max
리턴 integer

$separator 보호되어 있는 프로퍼티

The title separator.
protected string $separator
리턴 string

$siteName 보호되어 있는 프로퍼티

The site name.
protected string $siteName
리턴 string

$title 보호되어 있는 프로퍼티

The title content.
protected string $title
리턴 string

$titleFirst 보호되어 있는 프로퍼티

Display the title first.
protected bool $titleFirst
리턴 boolean