PEAR Role_Mgdschema
Role_Mgdschema is a custom PEAR file role used for installing MgdSchema files supplied my MidCOM components.
The Role_Mgdschema package must be installed prior to installing any MidCOM PEAR packages. To install it, run:
# pear channel-discover pear.midcom-project.org
# pear install midcom/Role_Mgdschema
The MgdSchema role installs the schema files of the components to a directory specified in PEAR configuration key mgdschema_dir. This must correspond to the schema directory used by Midgard configuration. To change it, run something like:
# pear config-set mgdschema_dir /opt/midgard/share/midgard/schema
Providing a schema in component
If component wants to provide some custom MgdSchema settings, they must be stored into the config/mgdschema.xml file in the component directory.
This MgdSchema file will automatically be recognized and installed with the component's name (e.g. org_openpsa_projects.xml) under the mgdschema_dir.
