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 midgard.admin.asgard

 Methods

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

Show a diff between two versions

Parameters

$handler_id

mixedThe ID of the handler.

$args

arrayThe argument list.

$data

array&$data The local request 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 (mixed $handler_id, array $args, array $data)

View previews

Parameters

$handler_id

mixedThe ID of the handler.

$args

arrayThe argument list.

$data

array&$data The local request data.

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

Restore to diff

Parameters

$handler_id

mixedThe ID of the handler.

$args

arrayThe argument list.

$data

array&$data The local request 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_request_data ($handler_id)

Parameters

$handler_id

_prepare_toolbars ($revision, $diff_view)

Call this after loading an object

Parameters

$revision

$diff_view

_rcs_toolbar ($args)

Prepare version control toolbar

Parameters

$args

_resolve_object_title ()

 Properties

 

\midcom_db_object $_object

Pointer to midgard object
 

mixed $_backend

RCS backend
 

string $_guid

Current object GUID.