Class no_bergfald_rcs_handler

Description
Variable Summary
 mixed $_args
 mixed $_backend
 string $_guid
 midcom_baseclasses_database_object $_object
 mixed $_source
 mixed $_toolbars
Method Summary
 no_bergfald_rcs_handler no_bergfald_rcs_handler ()
 array get_request_switch (none 0)
 void _do_callbacks ()
 void _handler_diff (mixed $handler_id, mixed $args, mixed &$data)
 void _handler_history (mixed $handler_id, mixed $args, mixed &$data)
 void _handler_preview (mixed $handler_id, mixed $args, mixed &$data)
 void _handler_restore (mixed $handler_id, mixed $args, mixed &$data)
 void _load_object (none 0)
 void _on_initialize ()
 void _prepare_toolbars ([mixed $revision = ''])
 void _show_diff ()
 void _show_history ()
 void _show_preview ()
 void _show_restore ()
Variables
mixed $_args = null (line 64)

The args that has been requested.

mixed $_backend = null (line 47)

RCS backend

  • access: private
string $_guid = null (line 42)

Current object Guid.

  • access: private
midcom_baseclasses_database_object $_object = null (line 54)

Pointer to midgard object

  • access: private
mixed $_source = null (line 69)

The source component

mixed $_toolbars = null (line 59)

Pointer to the toolbars object.

  • access: private

Inherited Variables

Inherited from midcom_baseclasses_components_handler

midcom_baseclasses_components_handler::$errcode
midcom_baseclasses_components_handler::$errstr
midcom_baseclasses_components_handler::$_component
midcom_baseclasses_components_handler::$_component_data
midcom_baseclasses_components_handler::$_config
midcom_baseclasses_components_handler::$_i18n
midcom_baseclasses_components_handler::$_l10n
midcom_baseclasses_components_handler::$_l10n_midcom
midcom_baseclasses_components_handler::$_master
midcom_baseclasses_components_handler::$_node_toolbar
midcom_baseclasses_components_handler::$_request_data
midcom_baseclasses_components_handler::$_topic
midcom_baseclasses_components_handler::$_view_toolbar
Methods
Constructor no_bergfald_rcs_handler (line 71)
no_bergfald_rcs_handler no_bergfald_rcs_handler ()
get_request_switch (line 88)

Static function, returns the request array for the rcs functions.

Add this to your _on_initialize function in the calling request:

 $rcs_array =  no_bergfald_rcs::get_request_switch();
 $this->request_switch = array_merge($this->request_switch, $rcs_array)

  • return: of request params
array get_request_switch (none 0)
  • none 0
_do_callbacks (line 135)

This function setts the correct Aegir navigationclass and /or calls the defined callbacks from the request component.

Todo: add a way to get a schema out of this.

void _do_callbacks ()
_handler_diff (line 325)

Show a diff between two versions

void _handler_diff (mixed $handler_id, mixed $args, mixed &$data)
_handler_history (line 273)

Show the changes done to the object

void _handler_history (mixed $handler_id, mixed $args, mixed &$data)
_handler_preview (line 429)

View preevies

void _handler_preview (mixed $handler_id, mixed $args, mixed &$data)
_handler_restore (line 392)

Restore to diff

void _handler_restore (mixed $handler_id, mixed $args, mixed &$data)
_load_object (line 187)

Load the object and the rcs backend

void _load_object (none 0)
  • none 0
_on_initialize (line 124)

Load the text_diff libaries needed to show diffs.

void _on_initialize ()

Redefinition of:
midcom_baseclasses_components_handler::_on_initialize()
Initialization event handler, called at the end of the initialization process.
_prepare_toolbars (line 199)

Call this after loading an object

void _prepare_toolbars ([mixed $revision = ''])
_resolve_object_title (line 304)
void _resolve_object_title ()
_show_diff (line 379)
void _show_diff ()
_show_history (line 296)
void _show_history ()
_show_preview (line 453)
void _show_preview ()
_show_restore (line 412)
void _show_restore ()

Inherited Methods

Inherited From midcom_baseclasses_components_handler

 midcom_baseclasses_components_handler::midcom_baseclasses_components_handler()
 midcom_baseclasses_components_handler::initialize()
 midcom_baseclasses_components_handler::_on_initialize()

Inherited From midcom_baseclasses_core_object

 midcom_baseclasses_core_object::midcom_baseclasses_core_object()

Documentation generated on Tue, 15 Aug 2006 12:33:00 +0300 by phpDocumentor 1.3.0RC3