$_guid
$_guid :
GUID of the current object
$_config : \midcom_services_rcs_config
__construct( $object, \midcom_services_rcs_config $config)
| $object | ||
| \midcom_services_rcs_config | $config |
update(\midcom_core_dbaobject $object, string $updatemessage = null) : boolean
Save a new revision
| \midcom_core_dbaobject | $object | the object to save. |
| string | $updatemessage | the message to be saved with the object. |
true on success.
rcs_update(object $object, string $message) : integer
Update object to RCS Should be called just before $object->update(), if the type parameter is omitted the function will use GUID to determine the type, this makes an extra DB query.
| object | $object | to be updated. |
| string | $message |
: 0 on success 3 on missing object->guid nonzero on error in one of the commands.
get_diff(string $oldest_revision, string $latest_revision, $renderer_style = 'inline') : array
Get a html diff between two versions.
| string | $oldest_revision | id of the oldest revision |
| string | $latest_revision | id of the latest revision |
| $renderer_style |
array with the original value, the new value and a diff -u
rcs_object2data(\midcom_core_dbaobject $object) : string
Make xml out of an object.
| \midcom_core_dbaobject | $object |
xmldata