‪TYPO3CMS  9.5
VersionState.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
18 
22 final class ‪VersionState extends ‪Enumeration
23 {
25 
33 
38  const ‪DEFAULT_STATE = 0;
39 
46  const ‪NEW_PLACEHOLDER = 1;
47 
55 
72  const ‪MOVE_POINTER = 4;
73 
77  public function ‪indicatesPlaceholder()
78  {
79  return (int)$this->‪__toString() > ‪self::DEFAULT_STATE;
80  }
81 }
‪TYPO3\CMS\Core\Versioning\VersionState\NEW_PLACEHOLDER
‪const NEW_PLACEHOLDER
Definition: VersionState.php:46
‪TYPO3\CMS\Core\Versioning
Definition: VersionState.php:2
‪TYPO3\CMS\Core\Versioning\VersionState\DELETE_PLACEHOLDER
‪const DELETE_PLACEHOLDER
Definition: VersionState.php:54
‪TYPO3\CMS\Core\Type\Enumeration\__toString
‪string __toString()
Definition: Enumeration.php:205
‪TYPO3\CMS\Core\Versioning\VersionState\MOVE_POINTER
‪const MOVE_POINTER
Definition: VersionState.php:72
‪TYPO3\CMS\Core\Versioning\VersionState\__default
‪const __default
Definition: VersionState.php:24
‪TYPO3\CMS\Core\Versioning\VersionState
Definition: VersionState.php:23
‪TYPO3\CMS\Core\Versioning\VersionState\NEW_PLACEHOLDER_VERSION
‪const NEW_PLACEHOLDER_VERSION
Definition: VersionState.php:32
‪TYPO3\CMS\Core\Versioning\VersionState\DEFAULT_STATE
‪const DEFAULT_STATE
Definition: VersionState.php:38
‪TYPO3\CMS\Core\Type\Enumeration
Definition: Enumeration.php:25
‪TYPO3\CMS\Core\Versioning\VersionState\indicatesPlaceholder
‪bool indicatesPlaceholder()
Definition: VersionState.php:77
‪TYPO3\CMS\Core\Versioning\VersionState\MOVE_PLACEHOLDER
‪const MOVE_PLACEHOLDER
Definition: VersionState.php:71