Open Source Content Management System

Midgard API Reference

  1. Object-oriented Midgard
  2. MidCOM component API
  3. Javascript API
  4. Classic Midgard API
    1. General API
    2. Class-specific API

The Midgard API reference is organized around the design of the database storage backend. For every entity, like a topic or an article, an MgdSchema type exists. The record type definition of an entity is a direct reflection of the database table that holds instances, records, of those entities. The records are not manipulated directly, but through functions that work with objects. The parameters of those objects often map directly to the fields of the record type they relate to. Sometimes relevant information from different record types is merged into one object.

Object-oriented Midgard

New Midgard API provides the following systems:

MidCOM component API

Midgard's Component Framework for PHP provides its own API for component and site developers:

Javascript API

Midgard uses Javascript to provide a nicer Ajax (programming) user interface and some advanced functionalities.

  • Prototype - the core Javascript library bundled with MidCOM
  • protoGrowl - User interface notification library
  • protoToolbar - Toolbar rendering library

Classic Midgard API

This section describes the types and functions of the Midgard 1.x series

The Classic API functions are deprecated and will be removed in Midgard 1.9 and 2.0 series.

For every entity this reference holds a section with a Record Type Definition, an Object Definition and an explanation of the available functions that are related to that particular record type. A separate section is dedicated to functions that do not relate to a specific record type.

If the return type of a function is object, the available parameters and methods from that object can be found by examining the related Object Definition.

General API

Class-specific API

Designed by Nemein, hosted by Anykey