Documentation

Revision_Controller
in package

Revision controller

Tags
subpackage

Revision

version
7.x
author

Hostmake LLC

copyright

© 2005-2022 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

Table of Contents

backup()  : mixed
Create revision
delete()  : mixed
Delete revision
deleteOldRevisions()  : mixed
Delete old revisions
getRevisions()  : array<string|int, mixed>
Get revision

Methods

backup()

Create revision

public static backup(object $oModel, array<string|int, mixed> $aValues) : mixed
Parameters
$oModel : object

model for revision

$aValues : array<string|int, mixed>

values array

Return values
mixed

delete()

Delete revision

public static delete(sting $modelName, int $entity_id) : mixed
Parameters
$modelName : sting

model name for revision

$entity_id : int

entity ID

Return values
mixed

deleteOldRevisions()

Delete old revisions

public static deleteOldRevisions() : mixed
Return values
mixed

getRevisions()

Get revision

public static getRevisions(object $oModel) : array<string|int, mixed>
Parameters
$oModel : object

model for revision

Return values
array<string|int, mixed>

Search results