CIData - Global

Utility class for working with CI data structures in JavaScript.

Instances of this class represent a CI (both its base record and any related lists), and the provided methods allow loading from or storing both the base record and related lists.

This class acts as a container for simple classes acting as maps of property name/value pairs. This class contains three kinds of such maps.
  • A single map representing the base CI table entry (such as one row cmdb_ci_linux_server and its superclasses). This map can be retrieved with the getData() method.
  • Arrays of maps representing the instances of related lists, with each array representing a single related list and each element of such an array representing a single row of that related list. These arrays can be retrieved with the getRelatedList() method.
  • Arrays of maps representing the instances of many-to-many tables, with each array representing a single many-to-many table and each element of such an array representing a single row of that many-to-many table. These arrays can be retrieved with the getM2MTable() method.

Use with any server-side discovery script.