Docs Goabase

Seo
in package
uses TraitCache

Read onlyYes
FinalYes

Table of Contents

Constants

RESERVED_NAMES  = ['admin', 'api', 'details', 'export', 'festival', 'flyer', 'invites', 'lift', 'meetingpoint', 'party', 'past', 'photos', 'reports', 'test', 'trackback', 'whocomes', 'forum', 'news']
ALLOWED_CHARACTERS  = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-']

Properties

$cache  : Cache
$characterMappings  : SeoCharsConfig

Methods

__construct()  : mixed
getCacheInstance()  : Cache
getName()  : string
unhtmlentities()  : string
appendUrlPrefix()  : string
convertToSeoFriendly()  : string
generateCacheKey()  : string
isReservedName()  : bool
isValidCharacter()  : bool
processUrlText()  : string
removeDuplicateDashes()  : string
removeSpecialCharacters()  : string

Constants

RESERVED_NAMES

public mixed RESERVED_NAMES = ['admin', 'api', 'details', 'export', 'festival', 'flyer', 'invites', 'lift', 'meetingpoint', 'party', 'past', 'photos', 'reports', 'test', 'trackback', 'whocomes', 'forum', 'news']

ALLOWED_CHARACTERS

private mixed ALLOWED_CHARACTERS = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-']

Properties

Methods

__construct()

public __construct() : mixed

getName()

public getName(string $text[, string $type = '' ]) : string
Parameters
$text : string
$type : string = ''
Return values
string

unhtmlentities()

public unhtmlentities(string $text) : string
Parameters
$text : string
Return values
string

appendUrlPrefix()

private appendUrlPrefix(string $url[, string $type = '' ]) : string
Parameters
$url : string
$type : string = ''
Return values
string

convertToSeoFriendly()

private convertToSeoFriendly(string $text) : string
Parameters
$text : string
Return values
string

generateCacheKey()

private generateCacheKey(string $text, string $type) : string
Parameters
$text : string
$type : string
Return values
string

isReservedName()

private isReservedName(string $name) : bool
Parameters
$name : string
Return values
bool

isValidCharacter()

private isValidCharacter(string $char) : bool
Parameters
$char : string
Return values
bool

processUrlText()

private processUrlText(string $text) : string
Parameters
$text : string
Return values
string

removeDuplicateDashes()

private removeDuplicateDashes(string $text) : string
Parameters
$text : string
Return values
string

removeSpecialCharacters()

private removeSpecialCharacters(string $text) : string
Parameters
$text : string
Return values
string

        
On this page

Search results