<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CFile"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="API_Specification"></a>API Specification</h1><divclass=CBody><h4class=CHeading>Overview</h4><p>This PHP library is divided into 4 packages. The top-level <mxServer> class dynamically includes everything else.</p><p>The <b>view</b> and <b>model</b> packages implement the graph component, represented by <ahref="view/mxGraph-php.html#mxGraph"class=LClassid=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">mxGraph</a>. It refers to a <ahref="model/mxGraphModel-php.html#mxGraphModel"class=LClassid=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">mxGraphModel</a> which contains <ahref="model/mxCell-php.html#mxCell"class=LClassid=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">mxCell</a>s and caches the state of the cells in a <ahref="view/mxGraphView-php.html#mxGraphView"class=LClassid=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">mxGraphView</a>. The cells are painted using a <mxCanvas> based on the appearance defined in <ahref="view/mxStylesheet-php.html#mxStylesheet"class=LClassid=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">mxStylesheet</a>.</p><p>The <b>io</b> package implements a generic <ahref="io/mxObjectCodec-php.html#mxObjectCodec"class=LClassid=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">mxObjectCodec</a> for turning PHP objects into XML. The main class is <ahref="io/mxCodec-php.html#mxCodec"class=LClassid=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">mxCodec</a>. <ahref="io/mxCodecRegistry-php.html#mxCodecRegistry"class=LClassid=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">mxCodecRegistry</a> is the global registry for custom codecs.</p><h4class=CHeading>Requirements</h4><p>The I/O module requires libxml support. The <ahref="canvas/mxGdCanvas-php.html#mxGdCanvas"class=LClassid=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')">mxGdCanvas</a> requires GD support.</p></div></div></div>
</div><!--Content-->
<divid=Footer><ahref="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<divclass=CToolTipid="tt1"><divclass=CClass>Implements a graph component.</div></div><divclass=CToolTipid="tt2"><divclass=CClass>Cells are the elements of the graph model. </div></div><divclass=CToolTipid="tt3"><divclass=CClass>Cells are the elements of the graph model. </div></div><divclass=CToolTipid="tt4"><divclass=CClass>Implements a view for the graph. </div></div><divclass=CToolTipid="tt5"><divclass=CClass>Defines the appearance of the cells in a graph. </div></div><divclass=CToolTipid="tt6"><divclass=CClass>XML codec for PHP object graphs.</div></div><divclass=CToolTipid="tt7"><divclass=CClass>XML codec for PHP object graphs. </div></div><divclass=CToolTipid="tt8"><divclass=CClass>A class to register codecs for objects.</div></div><divclass=CToolTipid="tt9"><divclass=CClass>Canvas for drawing graphs using the GD library. </div></div><!--END_ND_TOOLTIPS-->