Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
__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 = '-' ) : |
Make a Title instance. | |
render ( ) : string | Render the tag. | |
set ( string $title ) : |
Set title. | |
setFirst ( ) : |
Set title first. | |
setLast ( ) : |
Set title last. | |
setMax ( integer $max ) : |
Set title max length. | |
setSeparator ( string $separator ) : |
Set title separator. | |
setSiteName ( string $siteName ) : |
Set site name. |
Method | Description | |
---|---|---|
renderSeparator ( ) : string | Render the separator. |
Method | Description | |
---|---|---|
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 ) : |
Switch title position. |
public __construct ( array $configs = [] ) | ||
$configs | array |
public getTitleOnly ( ) : string | ||
return | string |
public isTitleFirst ( ) : boolean | ||
return | boolean |
protected renderSeparator ( ) : string | ||
return | string |
public setSeparator ( string $separator ) : |
||
$separator | string | |
return |
public setSiteName ( string $siteName ) : |
||
$siteName | string | |
return |