HashidsComponent
extends Hashids
in package
Table of Contents
Methods
- __construct() : mixed
- decodeText() : mixed
- encodeText() : mixed
- getAlphabet() : mixed
- Get the value of alphabet
- getMinHashLength() : mixed
- Get the value of minHashLength
- getSalt() : mixed
- Get the value of salt
- setAlphabet() : mixed
- setDefaults() : mixed
- setMinHashLength() : mixed
- setOnlyCapitals() : mixed
- setSalt() : mixed
Methods
__construct()
public
__construct() : mixed
decodeText()
public
decodeText([string $hexCode = "" ]) : mixed
Parameters
- $hexCode : string = ""
encodeText()
public
encodeText([string $text = "" ]) : mixed
Parameters
- $text : string = ""
getAlphabet()
Get the value of alphabet
public
getAlphabet() : mixed
getMinHashLength()
Get the value of minHashLength
public
getMinHashLength() : mixed
getSalt()
Get the value of salt
public
getSalt() : mixed
setAlphabet()
public
setAlphabet([string $alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" ]) : mixed
Parameters
- $alphabet : string = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
setDefaults()
public
setDefaults([bool $skipManualSettings = false ]) : mixed
Parameters
- $skipManualSettings : bool = false
setMinHashLength()
public
setMinHashLength([int $minHashLength = 8 ]) : mixed
Parameters
- $minHashLength : int = 8
setOnlyCapitals()
public
setOnlyCapitals([bool $hasNumbers = true ]) : mixed
Parameters
- $hasNumbers : bool = true
setSalt()
public
setSalt([mixed $salt = '' ]) : mixed
Parameters
- $salt : mixed = ''