relatedto ajax/ahah handler

package org.openpsa.relatedto

 Methods

__construct ()

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

Parameters

$handler_id

mixedThe ID of the handler.

$args

arrayThe argument list.

$data

array&$data The local request data.

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

Parameters

$handler_id

mixedThe ID of the handler.

$args

arrayThe argument list.

$data

array&$data The local request data.

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

Parameters

$handler_id

mixedThe ID of the handler.

$args

arrayThe argument list.

$data

array&$data The local request data.

_show_ajax (mixed $handler_id, array $data)

Parameters

$handler_id

mixedThe ID of the handler.

$data

array&$data The local request data.

_show_delete (mixed $handler_id, array $data)

Parameters

$handler_id

mixedThe ID of the handler.

$data

array&$data The local request data.

_show_render (mixed $handler_id, array $data)

Renders the selected view

Due to this being a purecode component we can't use the MidCOM style engine but operations are divided into overrideable methods as much as possible so components then can override them and then use the style engine within their own context.

Parameters

$handler_id

mixedThe ID of the handler.

$data

array&$data The local request data.

render_line_controls (array $link, object $other_obj)

Renders (if necessary) controls for confirming/deleting link object
Static

Parameters

$link

array&$link The necessary link information

$other_obj

object&other_obj The link target

_prepare_request_data ()

_render_line (array $link, object $other_obj)

Renders single link line

See the _show_render documentation for details about styling

Parameters

$link

array&$link The necessary link information

$other_obj

object&other_obj The link target

_render_line_default (array $link, object $other_obj)

Default line rendering, used if a specific renderer cannot be found

Tries to find certain properties likely to hold semi-useful information about the object, failing that outputs class and guid.

Parameters

$link

array&$link The necessary link information

$other_obj

object&other_obj The link target

_render_line_document (array $link, object $other_obj)

Renders a document line

See the _show_render documentation for details about styling

Parameters

$link

array&$link The necessary link information

$other_obj

object&other_obj The link target

_render_line_event (array $link, object $other_obj)

Renders an event line

See the _show_render documentation for details about styling

Parameters

$link

array&$link The necessary link information

$other_obj

object&other_obj The link target

_render_line_hour_report (array $link, object $other_obj)

If a component wishes to show hour_report lines it must override this method
Static

See the _show_render documentation for details about styling

Parameters

$link

array&$link The necessary link information

$other_obj

object&other_obj The link target

_render_line_invoice (array $link, object $other_obj)

Renders an invoice line

See the _show_render documentation for details about styling

Parameters

$link

array&$link The necessary link information

$other_obj

object&other_obj The link target

_render_line_salesproject (array $link, object $other_obj)

Renders a sales project line

See the _show_render documentation for details about styling

Parameters

$link

array&$link The necessary link information

$other_obj

object&other_obj The link target

_render_line_task (array $link, object $other_obj)

Renders a task line

See the _show_render documentation for details about styling

Parameters

$link

array&$link The necessary link information

$other_obj

object&other_obj The link target

_render_line_wikipage (array $link, object $other_obj)

Renders a wikipage line

See the _show_render documentation for details about styling

Parameters

$link

array&$link The necessary link information

$other_obj

object&other_obj The link target

_render_line_wikipage_email (array $link, object $other_obj)

Renders a wikipage line
Static

See the _show_render documentation for details about styling

Parameters

$link

array&$link The necessary link information

$other_obj

object&other_obj The link target

_render_line_wikipage_email_recipients ($page)

Static

Parameters

$page

_show_list ($direction)

Parameters

$direction

_sort_by_time ($a, $b)

Code to sort array by key 'sort_time', from smallest to greatest
Static

Used by $this->_sort_link_array()

Parameters

$a

$b

_sort_by_time_reverse ($a, $b)

Code to sort array by key 'sort_time', from greatest to smallest
Static

Used by $this->_sort_link_array()

Parameters

$a

$b

 Properties

 

mixed $realcomponent

   

string $_mode

The mode we're in
 

mixed $_object

The object we're working with
 

string $_sort

The sort order