|
const | PARSE_TYPE_PATTERN = '/^\\\\?(?P<type>integer|int|float|double|boolean|bool|string|DateTime|Tx_[a-zA-Z0-9_]+|[A-Z][a-zA-Z0-9\\\\_]+|object|resource|array|ArrayObject|SplObjectStorage|TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\ObjectStorage)(?:<\\\\?(?P<elementType>[a-zA-Z0-9\\\\_]+)>)?/' |
|
const | LITERAL_TYPE_PATTERN = '/^(?:integer|int|float|double|boolean|bool|string)$/' |
|
|
static | $collectionTypes = array('array', 'ArrayObject', 'SplObjectStorage', \TYPO3\CMS\Extbase\Persistence\ObjectStorage::class) |
|
PHP type handling functions
Definition at line 18 of file TypeHandlingUtility.php.
static hex2bin |
( |
|
$hexadecimalData | ) |
|
|
static |
Converts a hex encoded string into binary data
- Parameters
-
string | $hexadecimalData | A hex encoded string of data |
- Returns
- string A binary string decoded from the input
Definition at line 161 of file TypeHandlingUtility.php.
static isCollectionType |
( |
|
$type | ) |
|
|
static |
static isCoreType |
( |
|
$type | ) |
|
|
static |
static isLiteral |
( |
|
$type | ) |
|
|
static |
static isSimpleType |
( |
|
$type | ) |
|
|
static |
static isValidTypeForMultiValueComparison |
( |
|
$value | ) |
|
|
static |
static normalizeType |
( |
|
$type | ) |
|
|
static |
Normalize data types so they match the PHP type names: int -> integer double -> float bool -> boolean
- Parameters
-
string | $type | Data type to unify |
- Returns
- string unified data type
Definition at line 72 of file TypeHandlingUtility.php.
Referenced by Argument\__construct().
static parseType |
( |
|
$type | ) |
|
|
static |
$collectionTypes = array('array', 'ArrayObject', 'SplObjectStorage', \TYPO3\CMS\Extbase\Persistence\ObjectStorage::class) |
|
staticprotected |
const LITERAL_TYPE_PATTERN = '/^(?:integer|int|float|double|boolean|bool|string)$/' |
const PARSE_TYPE_PATTERN = '/^\\\\?(?P<type>integer|int|float|double|boolean|bool|string|DateTime|Tx_[a-zA-Z0-9_]+|[A-Z][a-zA-Z0-9\\\\_]+|object|resource|array|ArrayObject|SplObjectStorage|TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\ObjectStorage)(?:<\\\\?(?P<elementType>[a-zA-Z0-9\\\\_]+)>)?/' |