Content
Table of Contents
Constants
- TYPE_INTEGER = 2
- TYPE_MIXED = 3
- TYPE_STRING = 1
Methods
- canUseFulltextSearch() : bool
- Method check whether you can use the full-text search.
- isIntegerToken() : bool
- Method checks whether token is a number.
- prepareIntegerToken() : string
- Method adds zeros to integer search token, in order to bypass current mysql minimum of token size.
- prepareStringToken() : string
- Applies ROT13 transform to string search token, in order to bypass default mysql search blacklist.
Constants
TYPE_INTEGER
public
mixed
TYPE_INTEGER
= 2
TYPE_MIXED
public
mixed
TYPE_MIXED
= 3
TYPE_STRING
public
mixed
TYPE_STRING
= 1
Methods
canUseFulltextSearch()
Method check whether you can use the full-text search.
public
static canUseFulltextSearch(int|string $token[, int $type = self::TYPE_STRING ]) : bool
Parameters
- $token : int|string
-
Search token.
- $type : int = self::TYPE_STRING
-
Type of content.
Return values
boolisIntegerToken()
Method checks whether token is a number.
public
static isIntegerToken(int $token) : bool
Parameters
- $token : int
-
Search token.
Return values
boolprepareIntegerToken()
Method adds zeros to integer search token, in order to bypass current mysql minimum of token size.
public
static prepareIntegerToken(int $token) : string
Parameters
- $token : int
-
Search token.
Return values
stringprepareStringToken()
Applies ROT13 transform to string search token, in order to bypass default mysql search blacklist.
public
static prepareStringToken(string $token) : string
Parameters
- $token : string
-
Search token.