TYPO3
7.6
|
Public Member Functions | |
indicatesPlaceholder () | |
Public Member Functions inherited from Enumeration | |
__construct ($value=null) | |
equals ($value) | |
__toString () | |
Public Attributes | |
const | __default = self::DEFAULT_STATE |
const | NEW_PLACEHOLDER_VERSION = -1 |
const | DEFAULT_STATE = 0 |
const | NEW_PLACEHOLDER = 1 |
const | DELETE_PLACEHOLDER = 2 |
const | MOVE_PLACEHOLDER = 3 |
const | MOVE_POINTER = 4 |
Additional Inherited Members | |
Static Public Member Functions inherited from Enumeration | |
static | getConstants ($include_default=false) |
static | cast ($value) |
Protected Member Functions inherited from Enumeration | |
setValue ($value) | |
isValid ($value) | |
Static Protected Member Functions inherited from Enumeration | |
static | loadValues () |
Protected Attributes inherited from Enumeration | |
$value | |
Static Protected Attributes inherited from Enumeration | |
static | $enumConstants |
Enumeration object for VersionState
Definition at line 20 of file VersionState.php.
indicatesPlaceholder | ( | ) |
const __default = self::DEFAULT_STATE |
Definition at line 22 of file VersionState.php.
const DEFAULT_STATE = 0 |
The t3ver_state 0 is used for the live version of a record and for draft records with pid -1
Definition at line 36 of file VersionState.php.
Referenced by PageRepository\enableFields(), WorkspaceService\getMoveToPlaceHolderFromPages(), DataHandlerHook\processCmdmap_deleteAction(), and DataHandler\versionizeRecord().
const DELETE_PLACEHOLDER = 2 |
Deleting elements is done by actually creating a new version of the element and setting t3ver_state=2 that indicates the live element must be deleted upon swapping the versions.
Definition at line 52 of file VersionState.php.
Referenced by PagetreeNode\canBeCopied(), PagetreeNode\canBeCut(), PagetreeNode\canBePastedAfter(), PagetreeNode\canBePastedInto(), PagetreeNode\canBeRemoved(), WorkspaceService\canCreatePreviewLink(), ElementEntityProcessor\createClearDependentElementChildReferenceCallback(), ElementEntityProcessor\createClearDependentElementParentReferenceCallback(), DataHandler\deleteL10nOverlayRecords(), IconUtility\getIcon(), TcaInline\getWorkspacedUids(), PagetreeNode\isDeleted(), PageLayoutController\makeButtons(), IconFactory\mapRecordTypeToOverlayIdentifier(), DataHandlerHook\processCmdmap_deleteAction(), PlainDataResolver\processVersionOverlays(), RelationHandler\purgeDeletePlaceholder(), DataHandlerHook\version_clearWSID(), and DataHandler\versionizeRecord().
const MOVE_PLACEHOLDER = 3 |
Moving elements is done by first creating a placeholder element which is in fact live but carrying a flag (t3ver_state=3) that makes it invisible online. It also has a field, "t3ver_move_id", holding the uid of the record to move (source record). In addition, a new version of the source record is made and has "t3ver_state" = 4 (move-to pointer). This version is simply necessary in order for the versioning system to have something to publish for the move operation. So in summary, two records are created for a move operation in a workspace: The placeholder (online, with state=3 and t3ver_move_id set) and a new version (state=4) of the online source record (the one being moved).
Definition at line 69 of file VersionState.php.
Referenced by IconUtility\getIcon(), PageRepository\getMovePlaceholder(), WorkspaceService\getMoveToPlaceHolderFromPages(), VersionsCommand\main(), PageRepository\movePlhOL(), DataHandlerHook\moveRecord(), DataHandlerHook\moveRecord_wsPlaceholders(), DataHandlerHook\processCmdmap_deleteAction(), PlainDataResolver\processVersionMovePlaceholders(), and DataHandler\versionizeRecord().
const MOVE_POINTER = 4 |
Definition at line 70 of file VersionState.php.
Referenced by DataHandler\deleteVersionsForRecord(), IconUtility\getIcon(), WorkspaceService\getMoveToPlaceHolderFromPages(), WorkspaceService\hasPageRecordVersions(), VersionsCommand\main(), DataHandlerHook\moveRecord_wsPlaceholders(), DataHandlerHook\processCmdmap_deleteAction(), WorkspaceService\selectAllVersionsFromPages(), and WorkspaceService\viewSingleRecord().
const NEW_PLACEHOLDER = 1 |
Creating elements is done by first creating a placeholder element which is in fact live but carrying a flag (t3ver_state=1) that makes it invisible online.
Definition at line 44 of file VersionState.php.
Referenced by IntegrityService\checkLocalization(), IconUtility\getIcon(), WorkspaceService\isNewPage(), VersionsCommand\main(), and DataHandlerHook\version_clearWSID().
const NEW_PLACEHOLDER_VERSION = -1 |
If a new record is created in a workspace a version with t3ver_state -1 is created with pid=-1. This record is the version of the "live" record (t3ver_state=1) where changes are stored.
Definition at line 30 of file VersionState.php.
Referenced by RelationHandler\writeForeignField().