LikeWildcard : int
Enumeration object for LikeWildcard
Table of Contents
Cases
- BOTH = 3
- Use wildcard on both sides
- LEFT = 1
- Use wildcard on left side
- NONE
- Do not use any wildcard
- RIGHT = 2
- Use wildcard on right side
Methods
- getLikeQueryPart() : string
- Returns a LIKE clause for sql queries.
Cases
NONE
Do not use any wildcard
LEFT
Use wildcard on left side
RIGHT
Use wildcard on right side
BOTH
Use wildcard on both sides
Methods
getLikeQueryPart()
Returns a LIKE clause for sql queries.
public
getLikeQueryPart(string $tableName, string $fieldName, string $likeValue) : string
Parameters
- $tableName : string
-
The name of the table to query.
- $fieldName : string
-
The name of the field to query with LIKE.
- $likeValue : string
-
The value for the LIKE clause operation.