TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Service\TypeHandlingService Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Service\TypeHandlingService:
TYPO3\CMS\Core\SingletonInterface Tx_Extbase_Service_TypeHandlingService

Public Member Functions

 parseType ($type)
 
 normalizeType ($type)
 
 isLiteral ($type)
 
 isSimpleType ($type)
 

Public Attributes

const PARSE_TYPE_PATTERN = TypeHandlingUtility::PARSE_TYPE_PATTERN
 
const LITERAL_TYPE_PATTERN = TypeHandlingUtility::LITERAL_TYPE_PATTERN
 

Detailed Description

PHP type handling functions

Deprecated:
since 6.1, will be removed two versions later

Definition at line 23 of file TypeHandlingService.php.

Member Function Documentation

◆ isLiteral()

TYPO3\CMS\Extbase\Service\TypeHandlingService::isLiteral (   $type)

Returns TRUE if the $type is a literal.

Parameters
string$type
Returns
boolean

Definition at line 65 of file TypeHandlingService.php.

References TYPO3\CMS\Extbase\Utility\TypeHandlingUtility\isLiteral().

◆ isSimpleType()

TYPO3\CMS\Extbase\Service\TypeHandlingService::isSimpleType (   $type)

Returns TRUE if the $type is a simple type.

Parameters
string$type
Returns
boolean

Definition at line 75 of file TypeHandlingService.php.

References TYPO3\CMS\Extbase\Utility\TypeHandlingUtility\isSimpleType().

◆ normalizeType()

TYPO3\CMS\Extbase\Service\TypeHandlingService::normalizeType (   $type)

Normalize data types so they match the PHP type names: int -> integer float -> double bool -> boolean

Parameters
string$typeData type to unify
Returns
string unified data type

Definition at line 55 of file TypeHandlingService.php.

References TYPO3\CMS\Extbase\Utility\TypeHandlingUtility\normalizeType().

◆ parseType()

TYPO3\CMS\Extbase\Service\TypeHandlingService::parseType (   $type)

Adds (defines) a specific property and its type.

Parameters
string$typeType of the property (see PARSE_TYPE_PATTERN)
Exceptions

Definition at line 42 of file TypeHandlingService.php.

References TYPO3\CMS\Extbase\Utility\TypeHandlingUtility\parseType().

Member Data Documentation

◆ LITERAL_TYPE_PATTERN

const TYPO3\CMS\Extbase\Service\TypeHandlingService::LITERAL_TYPE_PATTERN = TypeHandlingUtility::LITERAL_TYPE_PATTERN

A type pattern to detect literal types.

Definition at line 33 of file TypeHandlingService.php.

◆ PARSE_TYPE_PATTERN

const TYPO3\CMS\Extbase\Service\TypeHandlingService::PARSE_TYPE_PATTERN = TypeHandlingUtility::PARSE_TYPE_PATTERN

A property type parse pattern.

Definition at line 28 of file TypeHandlingService.php.