Midgard APIs
From OpenPSA Wiki
The Midgard core exports a number of APIs in its language bindings which provide access to various features like storage interaction, authentication and replication.
As of version 1.6.0, MidCOM and its Components are included in the base distribution, thus the MidCOM API is usually available for PHP applications. The functionality of Components is generally acessible after loading the Component with midcom_helper_componentloader. Component developers should access Midgard features through the MidCOM framework features are available via the MidCOM PHP Superglobal and MidCOM Global Variables for example.
[edit] Current Midgard API
- Midgard Collector
- MgdSchema
- Query Builder
- QuerySelect
- Midgard Collector
- MidCOM PHP Superglobal access point to many MidCOM Methods
- MidCOM Features the APIs are detailed in the respective articles
[edit] Classic API
Due to the long history of the system, there are different APIs for coding with Midgard. The Midgard Classic API was used in older versions and is still present in legacy applications, but it is scheduled to be removed in Midgard 2. More modern approaches revolve around the MgdSchema object abstraction layer and mechanisms like Query Builder.
