midcom.helper.dm2config

This helper is more for the developer section, but I wrote a general handler class that gladly takes care of midcom.helper.datamanager2 configuration schemas for you.

Simple instructions on using it

  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_helper_dm2config_config', 'config'),
        'fixed_args' => array ('config'),
    );
    
  4. Remember to include midcom.helper.dm2config as a requirement in config/manifest.inc and to set it in $this->_autoload_libraries in midcom/interfaces.php

Update

Back