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
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
$cache
private
Cache
$cache
$characterMappings
private
SeoCharsConfig
$characterMappings
Methods
__construct()
public
__construct() : mixed
getCacheInstance()
public
getCacheInstance() : Cache
Return values
CachegetName()
public
getName(string $text[, string $type = '' ]) : string
Parameters
- $text : string
- $type : string = ''
Return values
stringunhtmlentities()
public
unhtmlentities(string $text) : string
Parameters
- $text : string
Return values
stringappendUrlPrefix()
private
appendUrlPrefix(string $url[, string $type = '' ]) : string
Parameters
- $url : string
- $type : string = ''
Return values
stringconvertToSeoFriendly()
private
convertToSeoFriendly(string $text) : string
Parameters
- $text : string
Return values
stringgenerateCacheKey()
private
generateCacheKey(string $text, string $type) : string
Parameters
- $text : string
- $type : string
Return values
stringisReservedName()
private
isReservedName(string $name) : bool
Parameters
- $name : string
Return values
boolisValidCharacter()
private
isValidCharacter(string $char) : bool
Parameters
- $char : string
Return values
boolprocessUrlText()
private
processUrlText(string $text) : string
Parameters
- $text : string
Return values
stringremoveDuplicateDashes()
private
removeDuplicateDashes(string $text) : string
Parameters
- $text : string
Return values
stringremoveSpecialCharacters()
private
removeSpecialCharacters(string $text) : string
Parameters
- $text : string