Пример #1
0
 /**
  * Class: mxModelCodec
  *
  * Codec for <mxGraphModels>. This class is created and registered
  * dynamically at load time and used implicitly via <mxCodec>
  * and the <mxCodecRegistry>.
  * 
  * Constructor: mxObjectCodec
  *
  * Constructs a new codec for the specified template object.
  * The variables in the optional exclude array are ignored by
  * the codec. Variables in the optional idrefs array are
  * turned into references in the XML. The optional mapping
  * may be used to map from variable names to XML attributes.
  *
  * Parameters:
  *
  * template - Prototypical instance of the object to be
  * encoded/decoded.
  * exclude - Optional array of fieldnames to be ignored.
  * idrefs - Optional array of fieldnames to be converted to/from
  * references.
  * mapping - Optional mapping from field- to attributenames.
  */
 function mxModelCodec($template)
 {
     parent::mxObjectCodec($template);
 }
 /**
  * Class: mxStylesheetCodec
  *
  * Codec for <mxStylesheets>. This class is created and registered
  * dynamically at load time and used implicitely via <mxCodec>
  * and the <mxCodecRegistry>.
  * 
  * Constructor: mxObjectCodec
  *
  * Constructs a new codec for the specified template object.
  * The variables in the optional exclude array are ignored by
  * the codec. Variables in the optional idrefs array are
  * turned into references in the XML. The optional mapping
  * may be used to map from variable names to XML attributes.
  *
  * Parameters:
  *
  * template - Prototypical instance of the object to be
  * encoded/decoded.
  * exclude - Optional array of fieldnames to be ignored.
  * idrefs - Optional array of fieldnames to be converted to/from
  * references.
  * mapping - Optional mapping from field- to attributenames.
  */
 function mxStylesheetCodec($template)
 {
     parent::mxObjectCodec($template);
 }
Пример #3
0
 /**
  * Class: mxCellCodec
  *
  * Codec for <mxCell>s. This class is created and registered
  * dynamically at load time and used implicitely via <mxCodec>
  * and the <mxCodecRegistry>.
  *
  * Transient Fields:
  *
  * - children
  * - edges
  * - states
  * - overlay
  * - mxTransient
  *
  * Reference Fields:
  *
  * - parent
  * - source
  * - target
  * 
  * Constructor: mxObjectCodec
  *
  * Constructs a new codec for the specified template object.
  * The variables in the optional exclude array are ignored by
  * the codec. Variables in the optional idrefs array are
  * turned into references in the XML. The optional mapping
  * may be used to map from variable names to XML attributes.
  *
  * Parameters:
  *
  * template - Prototypical instance of the object to be
  * encoded/decoded.
  * exclude - Optional array of fieldnames to be ignored.
  * idrefs - Optional array of fieldnames to be converted to/from
  * references.
  * mapping - Optional mapping from field- to attributenames.
  */
 function mxCellCodec($template)
 {
     parent::mxObjectCodec($template, array("children", "edges", "states", "overlay", "mxTransient"), array("parent", "source", "target"));
 }