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
- Write a midcom_helper_datamanager2_schema compatible configuration schema and place it among your component files
- Point a configuration key 'schemadb_config' to it within your component configuration (config/config.inc)
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'), );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
PEAR package is now found on the MidCOM PEAR Server, use
# pear install midcom/midcom_helper_dm2configto install
- Documentation will be updated only in Midgard documentation, namely under the page midcom.helper.dm2config