Simple styling class to make html out of diffs and get a simple way to provide rcs functionality

This handler can be added to your module by some simple steps. Add this to your request_switch array in the main handlerclass:

     $rcs_array =  no_bergfald_rcs_handler::get_plugin_handlers();
     foreach ($rcs_array as $key => $switch) {
           $this->_request_switch[] = $switch;
     }

If you want to have the handler do a callback to your class to add toolbars or other stuff,

Links and urls Linking is done with the format rcs/rcs_action/handler_name/object_guid/ Where handler name is the component using nemein rcs. The handler uses the component name to run a callback so the original handler may control other aspects of the operation.

todo add support for schemas.
package no.bergfald.rcs

 Methods

_handler_diff ($handler_id, array $args, array $data)

Show a diff between two versions

Parameters

$handler_id

$args

$data

_handler_history (mixed $handler_id, array $args, array $data)

Show the changes done to the object

Parameters

$handler_id

mixedThe ID of the handler.

$args

arrayThe argument list.

$data

array&$data The local request data.

_handler_preview ($handler_id, array $args, array $data)

View previews

Parameters

$handler_id

$args

$data

_handler_restore ($handler_id, array $args, array $data)

Restore to diff

Parameters

$handler_id

$args

$data

_on_initialize ()

Load the text_diff libaries needed to show diffs.

_show_diff ()

Show the differences between the versions

_show_history ()

_show_preview ()

_load_object ()

Load the object and the rcs backend

_prepare_breadcrumb ()

_prepare_toolbars ($revision, $diff_view)

Call this after loading an object

Parameters

$revision

$diff_view

_resolve_object_title ()

 Properties

 

\midcom_services_rcs_backend $_backend

RCS backend
 

string $_guid

Current object Guid.
 

\midcom_db_object $_object

Pointer to midgard object