TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
LikeWildcard Class Reference
Inheritance diagram for LikeWildcard:
Enumeration TypeInterface

Public Member Functions

 getLikeQueryPart ($tableName, $fieldName, $likeValue)
 
- Public Member Functions inherited from Enumeration
 __construct ($value=null)
 
 equals ($value)
 
 __toString ()
 

Public Attributes

const __default = self::BOTH
 
const NONE = 0
 
const LEFT = 1
 
const RIGHT = 2
 
const BOTH = 3
 

Additional Inherited Members

- Static Public Member Functions inherited from Enumeration
static getConstants ($include_default=false)
 
static cast ($value)
 
static getName ($value)
 
static getHumanReadableName ($value)
 
- Protected Member Functions inherited from Enumeration
 setValue ($value)
 
 isValid ($value)
 
- Static Protected Member Functions inherited from Enumeration
static loadValues ()
 
- Protected Attributes inherited from Enumeration
 $value
 
- Static Protected Attributes inherited from Enumeration
static $enumConstants
 

Detailed Description

Enumeration object for LikeWildcard

Definition at line 22 of file LikeWildcard.php.

Member Function Documentation

getLikeQueryPart (   $tableName,
  $fieldName,
  $likeValue 
)

Returns a LIKE clause for sql queries.

Parameters
string$tableNameThe name of the table to query.
string$fieldNameThe name of the field to query with LIKE.
string$likeValueThe value for the LIKE clause operation.
Returns
string

Definition at line 46 of file LikeWildcard.php.

References GeneralUtility\makeInstance().

Member Data Documentation

const __default = self::BOTH

Definition at line 24 of file LikeWildcard.php.

const LEFT = 1

Definition at line 30 of file LikeWildcard.php.

Referenced by LikeWildcardTest\getLikeQueryPartDataProvider().

const NONE = 0

Definition at line 27 of file LikeWildcard.php.

Referenced by LikeWildcardTest\getLikeQueryPartDataProvider().

const RIGHT = 2

Definition at line 33 of file LikeWildcard.php.

Referenced by LikeWildcardTest\getLikeQueryPartDataProvider().