mxModelCodec

Codec for mxGraphModels.  This class is created and registered dynamically at load time and used implicitly via mxCodec and the mxCodecRegistry.

Summary
mxModelCodecCodec for mxGraphModels.
Functions
mxObjectCodecConstructs a new codec for the specified template object.

Functions

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

templatePrototypical instance of the object to be encoded/decoded.
excludeOptional array of fieldnames to be ignored.
idrefsOptional array of fieldnames to be converted to/from references.
mappingOptional mapping from field- to attributenames.
Cells are the elements of the graph model.
XML codec for PHP object graphs.
A class to register codecs for objects.
Close