TYPO3  7.6
Public Member Functions | Public Attributes | List of all members
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)
 
- 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 20 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
Exceptions
\TYPO3\CMS\Core\Type\Exception\InvalidEnumerationValueException

Definition at line 45 of file LikeWildcard.php.

References $GLOBALS.

Member Data Documentation

const __default = self::BOTH

Definition at line 22 of file LikeWildcard.php.

const BOTH = 3
const LEFT = 1

Definition at line 28 of file LikeWildcard.php.

Referenced by LikeWildcardTest\getLikeQueryPartDataProvider().

const NONE = 0

Definition at line 25 of file LikeWildcard.php.

Referenced by LikeWildcardTest\getLikeQueryPartDataProvider().

const RIGHT = 2

Definition at line 31 of file LikeWildcard.php.

Referenced by LikeWildcardTest\getLikeQueryPartDataProvider().