Documentation

Versionable

Trait to add record versions

Table of Contents

$version  : mixed
_translatableInit()  : void
Initialize the versions relationship
_versionablePreSave()  : bool
Create a copy, update the version number.
changeVersion()  : void
Switch to another version.

Properties

Methods

_translatableInit()

Initialize the versions relationship

public _translatableInit([array<string|int, mixed> $params = [] ]) : void
Parameters
$params : array<string|int, mixed> = []
Return values
void

_versionablePreSave()

Create a copy, update the version number.

public _versionablePreSave() : bool
Return values
bool

changeVersion()

Switch to another version.

public changeVersion(mixed $num) : void

The current version number is kept, so the overall versions are always incremented.

Parameters
$num : mixed
Return values
void

Search results