Swiss Magic Data Editor: Difference between revisions

From IHRIS Wiki
Line 27: Line 27:
In this factory the child swiss nodes of a given swiss class are defined by a [[Configuration (Magic) Data|module configuration XML#Defining Magic Data in Configuration Files]] file.  The root parent swiss node is the main ''<configurationGroup>'' in the configuration XML file.   
In this factory the child swiss nodes of a given swiss class are defined by a [[Configuration (Magic) Data|module configuration XML#Defining Magic Data in Configuration Files]] file.  The root parent swiss node is the main ''<configurationGroup>'' in the configuration XML file.   


The child swiss nodes associated to a given ''<configurationGroup>'' are exactly the child ''<configuration>''s and ''<configurationGroup>''s on that node.
The child swiss nodes associated to a given ''<configurationGroup>'' are exactly the child ''<configuration>''s and ''<configurationGroup>''s on that node.  The names of the child swiss nodes are the names of the child ''<configuration>'' and ''<configurationGroup>'' nodes.


The magic data node associated to a swiss node is the exactly the magic data node associated to the given ''<configuration>'' or ''<configurationGroup>'' node as defined by the '''path''' and '''name''' attributes.
The magic data node associated to a swiss node is the exactly the magic data node associated to the given ''<configuration>'' or ''<configurationGroup>'' node as defined by the '''path''' and '''name''' attributes.


[[Category:Technical Overview]]
[[Category:Technical Overview]]

Revision as of 11:20, 4 September 2009

The Swiss Magic Data Editor is a set of php classes to hierarchically edit and view the configuration magic data.

Features

  • Provides different ways of traversing the configuration magic data hierarchy via different factories
  • Lots of AJAX goodness built in to display sub-menus within the current menu
  • Used in the "Form Relationship" builder and the "Custom Reporting" tool
  • Used in the "Configure Modules" tool

The Swiss Class

The I2CE_Swiss class is the base class used to

The Factories

Swiss Magic Factory

This is is the swiss factory do create dynamic content in I2CE. This includes:

  • Custom Form Relationships
  • Custom Reports
  • Custom Report Views

Parent and Children

Any (non-scalar) magic data node can serve as the root swiss node.

The children of a swiss node are in one to one correspondence with the child nodes of the corresponding magic data node. The names of the child swiss nodes are the same as the names of the child magic data nodes.

Swiss Config Factory

This is the Swiss Factory designed for the configure modules tool.

Parent And Children

In this factory the child swiss nodes of a given swiss class are defined by a module configuration XML#Defining Magic Data in Configuration Files file. The root parent swiss node is the main <configurationGroup> in the configuration XML file.

The child swiss nodes associated to a given <configurationGroup> are exactly the child <configuration>s and <configurationGroup>s on that node. The names of the child swiss nodes are the names of the child <configuration> and <configurationGroup> nodes.

The magic data node associated to a swiss node is the exactly the magic data node associated to the given <configuration> or <configurationGroup> node as defined by the path and name attributes.