package midcom.services.rcs

 Methods

__construct ($object, $config)

Parameters

$object

$config

get_comment ($revision)

Parameters

$revision

get_diff ($oldest_revision, $latest_revision)

Parameters

$oldest_revision

$latest_revision

get_next_version ($version)

Parameters

$version

get_prev_version ($version)

Parameters

$version

get_revision ($revision)

Parameters

$revision

list_history ()

list_history_numeric ()

restore_to_revision ($revision)

Parameters

$revision

update (\midcom_core_dbaobject $object, string $updatemessage)

This function saves a revision of an object, creating a revision if none exists

Parameters

$object

\midcom_core_dbaobject&$object the object to save.

$updatemessage

stringthe message to be saved with the object.

Exceptions

\midcom_error on serious errors.

Returns

booleantrue if save succeeded.

version_exists ($version)

Parameters

$version