VersionState : int

Enumeration object for VersionState

Table of Contents

Cases

DEFAULT_STATE
The t3ver_state 0 is used for a live element, and any commonly "modified" versioned record which is then identified with t3ver_oid=uid of live ID
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 publishing the versions.
MOVE_POINTER  = 4
When an element is moved to a different page, a versioned record is created with t3ver_state=4 and the new PID.
NEW_PLACEHOLDER  = 1
If a new record is created in a workspace a new record is added with t3ver_state = 1, a so-called "newly versioned record", which acts as a standalone record and has no t3ver_oid value. Publishing this record is done by changing the t3ver_wsid field to "0".

Methods

cast()  : self|null
Cast value to enumeration type
equals()  : bool
Compare if the value of the current object value equals the given value
indicatesPlaceholder()  : bool

Cases

DEFAULT_STATE

The t3ver_state 0 is used for a live element, and any commonly "modified" versioned record which is then identified with t3ver_oid=uid of live ID

NEW_PLACEHOLDER

If a new record is created in a workspace a new record is added with t3ver_state = 1, a so-called "newly versioned record", which acts as a standalone record and has no t3ver_oid value. Publishing this record is done by changing the t3ver_wsid field to "0".

DELETE_PLACEHOLDER

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 publishing the versions.

MOVE_POINTER

When an element is moved to a different page, a versioned record is created with t3ver_state=4 and the new PID.

When the database table has a sorting field, the sorting on the versioned record is also updated to reflect the new position.

When reading records from the DB with workspaces in mind, the t3ver_state=4 records should be fetched as well to find the new position and to do "workspace overlays" properly.

Methods

cast()

Cast value to enumeration type

public static cast(mixed $value) : self|null
Deprecated

since TYPO3 v13, will be removed in TYPO3 v14.0.

Parameters
$value : mixed
Return values
self|null

equals()

Compare if the value of the current object value equals the given value

public equals(mixed $value) : bool
Deprecated

since TYPO3 v13, will be removed in TYPO3 v14.0.

Parameters
$value : mixed
Return values
bool

indicatesPlaceholder()

public indicatesPlaceholder() : bool
Return values
bool

        
On this page

Search results