Blame | Letzte Änderung | Log anzeigen | RSS feed
<html><head><title>Docs For Class ImmoScout24Export</title><link rel="stylesheet" type="text/css" href="../media/style.css"></head><body><table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"><tr><td class="header_top">ImmoScout24Export</td></tr><tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr><tr><td class="header_menu">[ <a href="../classtrees_ImmoScout24Export.html" class="menu">class tree: ImmoScout24Export</a> ][ <a href="../elementindex_ImmoScout24Export.html" class="menu">index: ImmoScout24Export</a> ][ <a href="../elementindex.html" class="menu">all elements</a> ]</td></tr><tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr></table><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td width="200" class="menu"><b>Packages:</b><br /><a href="../li_ImmoScout24Export.html">ImmoScout24Export</a><br /><br /><br /><b>Files:</b><br /><div class="package"><a href="../ImmoScout24Export/_ImmoScout24Export_php.html"> ImmoScout24Export.php</a><br></div><br /><b>Classes:</b><br /><div class="package"><a href="../ImmoScout24Export/ImmoScout24Export.html">ImmoScout24Export</a><br /></div></td><td><table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"><h1>Class: ImmoScout24Export</h1>Source Location: /ImmoScout24Export.php<br /><br /><table width="100%" border="0"><tr><td valign="top"><h3><a href="#class_details">Class Overview</a></h3><pre>PEAR|--ImmoScout24Export</pre><br /><div class="description">Creates XML documents from PHP data structures like arrays, objects or scalars.</div><br /><br /><h4>Author(s):</h4><ul><li>Markus Niewerth <<a href="mailto:markus@weban.de">markus@weban.de</a>></li></ul><h4>Version:</h4><ul><li>CVS: $Id: ImmoScout24Export.php,v 1.0 2007/09/27 9:45:30 markusniewerth Exp $</li></ul><h4>Copyright:</h4><ul><li>1997-2007 The PHP Group</li></ul></td><td valign="top"><h3><a href="#class_vars">Variables</a></h3><ul><li><a href="../ImmoScout24Export/ImmoScout24Export.html#var$closeStack">$closeStack</a></li><li><a href="../ImmoScout24Export/ImmoScout24Export.html#var$debugMode">$debugMode</a></li><li><a href="../ImmoScout24Export/ImmoScout24Export.html#var$dirName">$dirName</a></li><li><a href="../ImmoScout24Export/ImmoScout24Export.html#var$dtdFile">$dtdFile</a></li><li><a href="../ImmoScout24Export/ImmoScout24Export.html#var$tempPath">$tempPath</a></li><li><a href="../ImmoScout24Export/ImmoScout24Export.html#var$XMLString">$XMLString</a></li><li><a href="../ImmoScout24Export/ImmoScout24Export.html#var$_ftpConnection">$_ftpConnection</a></li><li><a href="../ImmoScout24Export/ImmoScout24Export.html#var$_loginResult">$_loginResult</a></li></ul></td><td valign="top"><h3><a href="#class_methods">Methods</a></h3><ul><li><a href="../ImmoScout24Export/ImmoScout24Export.html#methodImmoScout24Export">ImmoScout24Export</a></li><li><a href="../ImmoScout24Export/ImmoScout24Export.html#methodapiVersion">apiVersion</a></li><li><a href="../ImmoScout24Export/ImmoScout24Export.html#methodattributesToString">attributesToString</a></li><li><a href="../ImmoScout24Export/ImmoScout24Export.html#methodexport">export</a></li><li><a href="../ImmoScout24Export/ImmoScout24Export.html#methodftp">ftp</a></li><li><a href="../ImmoScout24Export/ImmoScout24Export.html#methodgetXMLDeclaration">getXMLDeclaration</a></li><li><a href="../ImmoScout24Export/ImmoScout24Export.html#methodparse2XML">parse2XML</a></li><li><a href="../ImmoScout24Export/ImmoScout24Export.html#methodXMLSave">XMLSave</a></li></ul></td></tr></table><hr /><table width="100%" border="0"><tr></tr></table><hr /><a name="class_details"></a><h3>Class Details</h3><div class="tags">[line <a href="..//__filesource/fsource_ImmoScout24Export__ImmoScout24Export.php.html#a117">117</a>]<br />Creates XML documents from PHP data structures like arrays, objects or scalars.<br /><br /><p>Creates XML documents from PHP data structures like arrays, objects or scalars.this class can be used in two modes:<ol><li>create an XML document from an array or object that is processed by otherapplications. That means, you can create a RDF document from an array in thefollowing format:</li></ol> $data = array( 'channel' => array( 'title' => 'Example RDF channel', 'link' => 'http://www.php-tools.de', 'image' => array( 'title' => 'Example image', 'url' => 'http://www.php-tools.de/image.gif', 'link' => 'http://www.php-tools.de' ), array( 'title' => 'Example item', 'link' => 'http://example.com' ), array( 'title' => 'Another Example item', 'link' => 'http://example.org' ) ) );to create a RDF document from this array do the following:require_once 'XML/Serializer.php';$options = array( XML_SERIALIZER_OPTION_INDENT => "\t", // indent with tabs XML_SERIALIZER_OPTION_LINEBREAKS => "\n", // use UNIX line breaks XML_SERIALIZER_OPTION_ROOT_NAME => 'rdf:RDF', // root tag XML_SERIALIZER_OPTION_DEFAULT_TAG => 'item' // tag for values with numeric keys );$serializer = new XML_Serializer($options); $rdf = $serializer->serialize($data);You will get a complete XML document that can be processed like any RDF document.2. this classes can be used to serialize any data structure in a way that it can later be unserialized again. XML_Serializer will store the type of the value and additional meta information in attributes of the surrounding tag. This meat information can later be used to restore the original data structure in PHP. If you want XML_Serializer to add meta information to the tags, addXML_SERIALIZER_OPTION_TYPEHINTS => trueto the options array in the constructor.</p><br /><br /><br /><h4>Tags:</h4><div class="tags"><table border="0" cellspacing="0" cellpadding="0"><tr><td><b>link:</b> </td><td><a href="http://pear.php.net/package/XML_Serializer">http://pear.php.net/package/XML_Serializer</a></td></tr><tr><td><b>see:</b> </td><td>XML_Unserializer</td></tr><tr><td><b>version:</b> </td><td>CVS: $Id: ImmoScout24Export.php,v 1.0 2007/09/27 9:45:30 markusniewerth Exp $</td></tr><tr><td><b>license:</b> </td><td><a href="http://www.php.net/license/3_0.txt">PHP License 3.0</a></td></tr><tr><td><b>copyright:</b> </td><td>1997-2007 The PHP Group</td></tr><tr><td><b>author:</b> </td><td>Markus Niewerth <<a href="mailto:markus@weban.de">markus@weban.de</a>></td></tr></table></div></div><br /><br /><div class="top">[ <a href="#top">Top</a> ]</div><br /><hr /><a name="class_vars"></a><h3>Class Variables</h3><div class="tags"><a name="var$closeStack"></a><p></p><h4>$closeStack = <span class="value"></span></h4><p>[line <a href="..//__filesource/fsource_ImmoScout24Export__ImmoScout24Export.php.html#a123">123</a>]</p><br /><div class="tags"><table border="0" cellspacing="0" cellpadding="0"><tr><td><b>Type:</b> </td><td>mixed</td></tr></table></div><br /><br /><div class="top">[ <a href="#top">Top</a> ]</div><br /><a name="var$debugMode"></a><p></p><h4>$debugMode = <span class="value"></span></h4><p>[line <a href="..//__filesource/fsource_ImmoScout24Export__ImmoScout24Export.php.html#a132">132</a>]</p><br /><div class="tags"><table border="0" cellspacing="0" cellpadding="0"><tr><td><b>Type:</b> </td><td>mixed</td></tr></table></div><br /><br /><div class="top">[ <a href="#top">Top</a> ]</div><br /><a name="var$dirName"></a><p></p><h4>$dirName = <span class="value"></span></h4><p>[line <a href="..//__filesource/fsource_ImmoScout24Export__ImmoScout24Export.php.html#a129">129</a>]</p><br /><div class="tags"><table border="0" cellspacing="0" cellpadding="0"><tr><td><b>Type:</b> </td><td>mixed</td></tr></table></div><br /><br /><div class="top">[ <a href="#top">Top</a> ]</div><br /><a name="var$dtdFile"></a><p></p><h4>$dtdFile = <span class="value"></span></h4><p>[line <a href="..//__filesource/fsource_ImmoScout24Export__ImmoScout24Export.php.html#a138">138</a>]</p><br /><div class="tags"><table border="0" cellspacing="0" cellpadding="0"><tr><td><b>Type:</b> </td><td>mixed</td></tr></table></div><br /><br /><div class="top">[ <a href="#top">Top</a> ]</div><br /><a name="var$tempPath"></a><p></p><h4>$tempPath = <span class="value"></span></h4><p>[line <a href="..//__filesource/fsource_ImmoScout24Export__ImmoScout24Export.php.html#a126">126</a>]</p><br /><div class="tags"><table border="0" cellspacing="0" cellpadding="0"><tr><td><b>Type:</b> </td><td>mixed</td></tr></table></div><br /><br /><div class="top">[ <a href="#top">Top</a> ]</div><br /><a name="var$XMLString"></a><p></p><h4>$XMLString = <span class="value"></span></h4><p>[line <a href="..//__filesource/fsource_ImmoScout24Export__ImmoScout24Export.php.html#a120">120</a>]</p><br /><div class="tags"><table border="0" cellspacing="0" cellpadding="0"><tr><td><b>Type:</b> </td><td>mixed</td></tr></table></div><br /><br /><div class="top">[ <a href="#top">Top</a> ]</div><br /><a name="var$_ftpConnection"></a><p></p><h4>$_ftpConnection = <span class="value"></span></h4><p>[line <a href="..//__filesource/fsource_ImmoScout24Export__ImmoScout24Export.php.html#a134">134</a>]</p><br /><div class="tags"><table border="0" cellspacing="0" cellpadding="0"><tr><td><b>Type:</b> </td><td>mixed</td></tr></table></div><br /><br /><div class="top">[ <a href="#top">Top</a> ]</div><br /><a name="var$_loginResult"></a><p></p><h4>$_loginResult = <span class="value"></span></h4><p>[line <a href="..//__filesource/fsource_ImmoScout24Export__ImmoScout24Export.php.html#a136">136</a>]</p><br /><div class="tags"><table border="0" cellspacing="0" cellpadding="0"><tr><td><b>Type:</b> </td><td>mixed</td></tr></table></div><br /><br /><div class="top">[ <a href="#top">Top</a> ]</div><br /></div><br /><hr /><a name="class_methods"></a><h3>Class Methods</h3><div class="tags"><hr /><a name="methodImmoScout24Export"></a><h3>constructor ImmoScout24Export <span class="smalllinenumber">[line <a href="..//__filesource/fsource_ImmoScout24Export__ImmoScout24Export.php.html#a147">147</a>]</span></h3><div class="function"><table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"><table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"><code><a href="../ImmoScout24Export/ImmoScout24Export.html">ImmoScout24Export</a> ImmoScout24Export([string$database = 'gwg_gladbeck_de'], [mixed$debugMode = true], [mixed$dtdFile = 'http://gwg.weban.de/XML/xsi/is24immotransfer.xsd'])</code></td></tr></table></td></tr></table><br />Constructor<br /><br /><p>Constructor</p><br /><br /><br /><h4>Parameters:</h4><div class="tags"><table border="0" cellspacing="0" cellpadding="0"><tr><td class="type">string </td><td><b>$database</b> </td><td></td></tr></table></div><br /><div class="top">[ <a href="#top">Top</a> ]</div></div><hr /><a name="methodapiVersion"></a><h3>method apiVersion <span class="smalllinenumber">[line <a href="..//__filesource/fsource_ImmoScout24Export__ImmoScout24Export.php.html#a169">169</a>]</span></h3><div class="function"><table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"><table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"><code>string apiVersion()</code></td></tr></table></td></tr></table><br />Returns the current API Version<br /><br /><p>Returns the current API Version</p><br /><br /><br /><div class="top">[ <a href="#top">Top</a> ]</div></div><hr /><a name="methodattributesToString"></a><h3>method attributesToString <span class="smalllinenumber">[line <a href="..//__filesource/fsource_ImmoScout24Export__ImmoScout24Export.php.html#a213">213</a>]</span></h3><div class="function"><table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"><table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"><code>string attributesToString([array$attributes = array()])</code></td></tr></table></td></tr></table><br />Creates elements from attributes array<br /><br /><p>Creates elements from attributes array</p><br /><br /><br /><h4>Tags:</h4><div class="tags"><table border="0" cellspacing="0" cellpadding="0"><tr><td><b>usedby:</b> </td><td><a href="../ImmoScout24Export/ImmoScout24Export.html#methodgetXMLDeclaration">ImmoScout24Export::getXMLDeclaration()</a> - to serialize the attributes of the XML declaration</td></tr></table></div><br /><br /><h4>Parameters:</h4><div class="tags"><table border="0" cellspacing="0" cellpadding="0"><tr><td class="type">array </td><td><b>$attributes</b> </td><td></td></tr></table></div><br /><div class="top">[ <a href="#top">Top</a> ]</div></div><hr /><a name="methodexport"></a><h3>method export <span class="smalllinenumber">[line <a href="..//__filesource/fsource_ImmoScout24Export__ImmoScout24Export.php.html#a351">351</a>]</span></h3><div class="function"><table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"><table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"><code>string export(mixed$config, array$data)</code></td></tr></table></td></tr></table><br />Export Data Array into XML Format<br /><br /><p>Export Data Array into XML Format</p><br /><br /><br /><h4>Parameters:</h4><div class="tags"><table border="0" cellspacing="0" cellpadding="0"><tr><td class="type">array </td><td><b>$data</b> </td><td></td></tr></table></div><br /><div class="top">[ <a href="#top">Top</a> ]</div></div><hr /><a name="methodftp"></a><h3>method ftp <span class="smalllinenumber">[line <a href="..//__filesource/fsource_ImmoScout24Export__ImmoScout24Export.php.html#a305">305</a>]</span></h3><div class="function"><table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"><table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"><code>void ftp([mixed$username = null], [mixed$password = null], [mixed$hostname = null], [mixed$option = 'open'], [mixed$destFile = null])</code></td></tr></table></td></tr></table><br /><br /><br /><div class="top">[ <a href="#top">Top</a> ]</div></div><hr /><a name="methodgetXMLDeclaration"></a><h3>method getXMLDeclaration <span class="smalllinenumber">[line <a href="..//__filesource/fsource_ImmoScout24Export__ImmoScout24Export.php.html#a191">191</a>]</span></h3><div class="function"><table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"><table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"><code>string getXMLDeclaration([string$version = "1.0"], [string$encoding = null], [mixed$standalone = null], boolean$standAlone)</code></td></tr></table></td></tr></table><br />Build an xml declaration<br /><br /><p>Build an xml declaration<div class="listing"><pre><ol><li> <span class="src-inc">require_once </span><span class="src-str">'ImmoScout24Export.php'</span><span class="src-sym">;</span></li><li> </li><li> <span class="src-comm">// get an XML declaration:</span></li><li> <span class="src-var">$xmlDecl </span>= <a href="../ImmoScout24Export/ImmoScout24Export.html#methodImmoScout24Export">ImmoScout24Export</a><span class="src-sym">::</span><a href="../ImmoScout24Export/ImmoScout24Export.html#methodgetXMLDeclaration">getXMLDeclaration</a><span class="src-sym">(</span><span class="src-str">"1.0"</span><span class="src-sym">, </span><span class="src-str">"UTF-8"</span><span class="src-sym">, </span><span class="src-id">true</span><span class="src-sym">)</span><span class="src-sym">;</span></li></ol></pre></div></p><br /><br /><br /><h4>Tags:</h4><div class="tags"><table border="0" cellspacing="0" cellpadding="0"><tr><td><b>return:</b> </td><td>xml declaration</td></tr><tr><td><b>uses:</b> </td><td><a href="../ImmoScout24Export/ImmoScout24Export.html#methodattributesToString">ImmoScout24Export::attributesToString()</a> - to serialize the attributes of the XML declaration</td></tr><tr><td><b>static:</b> </td><td></td></tr><tr><td><b>access:</b> </td><td>public</td></tr></table></div><br /><br /><h4>Parameters:</h4><div class="tags"><table border="0" cellspacing="0" cellpadding="0"><tr><td class="type">string </td><td><b>$version</b> </td><td>xml version</td></tr><tr><td class="type">string </td><td><b>$encoding</b> </td><td>character encoding</td></tr><tr><td class="type">boolean </td><td><b>$standAlone</b> </td><td>document is standalone (or not)</td></tr></table></div><br /><div class="top">[ <a href="#top">Top</a> ]</div></div><hr /><a name="methodparse2XML"></a><h3>method parse2XML <span class="smalllinenumber">[line <a href="..//__filesource/fsource_ImmoScout24Export__ImmoScout24Export.php.html#a231">231</a>]</span></h3><div class="function"><table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"><table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"><code>string parse2XML(array$data)</code></td></tr></table></td></tr></table><br />Parse an array with elements and attributes<br /><br /><p>Parse an array with elements and attributes NOTE: Only usable if constructed!</p><br /><br /><br /><h4>Parameters:</h4><div class="tags"><table border="0" cellspacing="0" cellpadding="0"><tr><td class="type">array </td><td><b>$data</b> </td><td></td></tr></table></div><br /><div class="top">[ <a href="#top">Top</a> ]</div></div><hr /><a name="methodXMLSave"></a><h3>method XMLSave <span class="smalllinenumber">[line <a href="..//__filesource/fsource_ImmoScout24Export__ImmoScout24Export.php.html#a261">261</a>]</span></h3><div class="function"><table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"><table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"><code>void XMLSave([mixed$fileName = 'ImmoScout24Export.xml'], [mixed$path = './'])</code></td></tr></table></td></tr></table><br /><br /><br /><div class="top">[ <a href="#top">Top</a> ]</div></div></div><br /><div class="credit"><hr />Documentation generated on Tue, 11 Dec 2007 14:43:54 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a></div></td></tr></table></td></tr></table></body></html>