[CLEANUP] Use correct casting syntax
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / DataHandling / TableColumnType.php
1 <?php
2 namespace TYPO3\CMS\Core\DataHandling;
3 /**
4 * This file is part of the TYPO3 CMS project.
5 *
6 * It is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU General Public License, either version 2
8 * of the License, or any later version.
9 *
10 * For the full copyright and license information, please read the
11 * LICENSE.txt file that was distributed with this source code.
12 *
13 * The TYPO3 project - inspiring people to share!
14 */
15
16 /**
17 * Enumeration object for tca type
18 *
19 * @package TYPO3\CMS\Core
20 */
21 class TableColumnType extends \TYPO3\CMS\Core\Type\Enumeration {
22 const __default = self::INPUT;
23
24 /**
25 * Constants reflecting the table column type
26 */
27 const INPUT = 'INPUT';
28 const TEXT = 'TEXT';
29 const CHECK = 'CHECK';
30 const RADIO = 'RADIO';
31 const SELECT = 'SELECT';
32 const GROUP = 'GROUP';
33 const NONE = 'NONE';
34 const PASSTHROUGH = 'PASSTHROUGH';
35 const USER = 'USER';
36 const FLEX = 'FLEX';
37 const INLINE = 'INLINE';
38
39 /**
40 * @param mixed $type
41 */
42 public function __construct($type = NULL) {
43 if ($type !== NULL) {
44 $type = strtoupper((string)$type);
45 }
46
47 parent::__construct($type);
48 }
49 }