Hour report CRUD handler

package org.openpsa.expenses

 Methods

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

executes passed action for passed reports & relocates to passed url

Parameters

$handler_id

mixedThe ID of the handler.

$args

arrayThe argument list.

$data

array&$data The local request data.

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

Displays the report creation view.

If create privileges apply, we relocate to the edit view

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)

The delete handler.

Parameters

$handler_id

mixedThe ID of the handler.

$args

arrayThe argument list.

$data

array&$data The local request data.

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

Looks up an hour_report to edit.

Parameters

$handler_id

mixedThe ID of the handler.

$args

arrayThe argument list.

$data

array&$data The local request data.

_show_create (mixed $handler_id, array $data)

Shows the create form.

Parameters

$handler_id

mixedThe ID of the handler.

$data

array&$data The local request data.

_show_delete (mixed $handler_id, array $data)

Shows the delete hour_report form

Parameters

$handler_id

mixedThe ID of the handler.

$data

array&$data The local request data.

_show_edit (mixed $handler_id, array $data)

Shows the hour_report edit form.

Parameters

$handler_id

mixedThe ID of the handler.

$data

array&$data The local request data.

dm2_create_callback ($controller)

DM2 creation callback

Parameters

$controller

_add_toolbar_items (mixed $parent)

Helper to populate the toolbar

Parameters

$parent

mixedThe parent object or false

_get_autocomplete_selection ()

_load_create_controller ()

Internal helper, fires up the creation mode controller.

Any error triggers a 500.

_load_schemadb ()

Loads and prepares the schema database.

The operations are done on all available schemas within the DB.

_prepare_request_data ()

Simple helper which references all important members to the request data listing for usage within the style listing.

_update_breadcrumb_line (string $handler_id)

Helper, updates the context so that we get a complete breadcrumb line towards the current location.

Parameters

$handler_id

stringThe handler ID

 Properties

 

\midcom_helper_datamanager2_controller_simple $_controller

The Controller of the report used for editing
 

array $_defaults

The defaults to use for the new report.
 

\org_openpsa_projects_hour_report_dba $_hour_report

The hour report
 

string $_schema

The schema to use for the new article.
 

array $_schemadb

The schema database in use, available only while a datamanager is loaded.