‪TYPO3CMS  11.5
VersionState.php
Go to the documentation of this file.
1 <?php
2 
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 
17 
19 
23 final class ‪VersionState extends ‪Enumeration
24 {
26 
37  public const ‪NEW_PLACEHOLDER_VERSION = -1;
38 
44  public const ‪DEFAULT_STATE = 0;
45 
53  public const ‪NEW_PLACEHOLDER = 1;
54 
61  public const ‪DELETE_PLACEHOLDER = 2;
62 
77  public const ‪MOVE_PLACEHOLDER = 3;
78  public const ‪MOVE_POINTER = 4;
79 
83  public function ‪indicatesPlaceholder()
84  {
85  return (int)$this->‪__toString() > ‪self::NEW_PLACEHOLDER;
86  }
87 }
‪TYPO3\CMS\Core\Versioning\VersionState\NEW_PLACEHOLDER
‪const NEW_PLACEHOLDER
Definition: VersionState.php:53
‪TYPO3\CMS\Core\Versioning
Definition: VersionState.php:16
‪TYPO3\CMS\Core\Versioning\VersionState\DELETE_PLACEHOLDER
‪const DELETE_PLACEHOLDER
Definition: VersionState.php:61
‪TYPO3\CMS\Core\Type\Enumeration\__toString
‪string __toString()
Definition: Enumeration.php:209
‪TYPO3\CMS\Core\Versioning\VersionState\MOVE_POINTER
‪const MOVE_POINTER
Definition: VersionState.php:78
‪TYPO3\CMS\Core\Versioning\VersionState\__default
‪const __default
Definition: VersionState.php:25
‪TYPO3\CMS\Core\Versioning\VersionState
Definition: VersionState.php:24
‪TYPO3\CMS\Core\Versioning\VersionState\NEW_PLACEHOLDER_VERSION
‪const NEW_PLACEHOLDER_VERSION
Definition: VersionState.php:37
‪TYPO3\CMS\Core\Versioning\VersionState\DEFAULT_STATE
‪const DEFAULT_STATE
Definition: VersionState.php:44
‪TYPO3\CMS\Core\Type\Enumeration
Definition: Enumeration.php:29
‪TYPO3\CMS\Core\Versioning\VersionState\indicatesPlaceholder
‪bool indicatesPlaceholder()
Definition: VersionState.php:83
‪TYPO3\CMS\Core\Versioning\VersionState\MOVE_PLACEHOLDER
‪const MOVE_PLACEHOLDER
Definition: VersionState.php:77