midcom.helper.datamanager2 based configuration

Usage:

  1. Write a midcom_helper_datamanager2_schema compatible configuration schema and place it among your component files
  2. Point a configuration key 'schemadb_config' to it within your component configuration (config/config.inc)
  3. Refer to DM2 component configuration helper with a request handler, e.g.
    $this->_request_handler['config'] = array
    (
        'handler' => array ('midcom_baseclasses_components_handler_configuration', 'config'),
        'fixed_args' => array ('config'),
    );
package midcom.baseclasses

 Methods

_handler_config (string $handler_id, array $args, array $data)

Generic handler for all the DM2 based configuration requests

Parameters

$handler_id

stringName of the handler

$args

arrayVariable arguments

$data

array&$data Miscellaneous output data

_handler_recreate (string $handler_id, array $args, array $data)

Handler for regenerating all derived images used in the folder.

If used in a component, you should implement the _load_datamanagers and _load_objects methods in an inherited handler class.

_load_datamanagers must return an array of midcom_helper_datamanager2_datamanager objects indexed by DBA class name.

_load_objects must return an array of DBA objects.

Parameters

$handler_id

stringName of the handler

$args

arrayVariable arguments

$data

array&$data Miscellaneous output data

_show_config (string $handler_id, array $data)

Show the configuration screen

Parameters

$handler_id

stringName of the handler

$data

array&$data Miscellaneous output data

_show_recreate (string $handler_id, array $data)

Show the recreation screen

Parameters

$handler_id

stringName of the handler

$data

arrayMiscellaneous output data

get_schema_name ()

load_schemadb ()

 Properties

 

\midcom_helper_datamanager2_controller $_controller

DM2 controller instance