[piwi] r583 committed - [No log message]

0 views
Skip to first unread message

pi...@googlecode.com

unread,
Nov 21, 2010, 8:28:30 AM11/21/10
to piwi...@googlegroups.com
Revision: 583
Author: danielpalme82
Date: Sun Nov 21 05:27:25 2010
Log: [No log message]
http://code.google.com/p/piwi/source/detail?r=583

Modified:
/framework/trunk/docs/api/default/generatorfactory.html
/framework/trunk/piwi/lib/piwi/generator/GeneratorFactory.class.php

=======================================
--- /framework/trunk/docs/api/default/generatorfactory.html Sun Apr 26
04:49:18 2009
+++ /framework/trunk/docs/api/default/generatorfactory.html Sun Nov 21
05:27:25 2010
@@ -58,14 +58,10 @@
<td class="description"><p class="name"><a
href="#generators">$generators</a></p><p class="description">Map of the
generators that have already been initialized. </p></td>
</tr>
<tr>
-<td class="type">private static mixed</td>
+<td class="type">private mixed</td>
<td class="description"><p class="name"><a
href="#generatorsXMLPath">$generatorsXMLPath</a></p><p
class="description">Path of the file containing the xml-definition of the
generators that can be used. </p></td>
</tr>
<tr>
-<td class="type">private static mixed</td>
-<td class="description"><p class="name"><a
href="#instance">$instance</a></p><p class="description">Singleton instance
of the GeneratorFactory. </p></td>
-</tr>
-<tr>
<td class="type">private mixed</td>
<td class="description"><p class="name"><a href="#xml">$xml</a></p><p
class="description">The generators definition as xml. </p></td>
</tr>
@@ -95,14 +91,14 @@
</p></td>
</tr>
<tr>
-<td class="type">static <a
href="../default/generator.html">Generator</a></td>
+<td class="type">static DOMDocument</td>
<td class="description"><p class="name"><a
href="#callGenerator()">callGenerator</a>(string generatorId)</p><p
class="description">
Used within the XSLT-Stylesheets to interpret the tag. </p></td>
</tr>
<tr>
<td class="type"> void</td>
<td class="description"><p class="name"><a
href="#setGeneratorsXMLPath()">setGeneratorsXMLPath</a>(string
generatorsXMLPath)</p><p class="description">
-Set the path of the file containing the xml-definition </p></td>
+Set the path of the file containing the xml-definition</p></td>
</tr>
</table>

@@ -115,17 +111,10 @@
<hr>

<h3 id="generatorsXMLPath">generatorsXMLPath</h3>
-<code class="signature">private static mixed
<strong>$generatorsXMLPath</strong> = null</code>
+<code class="signature">private mixed <strong>$generatorsXMLPath</strong>
= null</code>
<div class="details">
<p>Path of the file containing the xml-definition of the generators that
can be used. */</p></div>

-<hr>
-
-<h3 id="instance">instance</h3>
-<code class="signature">private static mixed <strong>$instance</strong> =
null</code>
-<div class="details">
-<p>Singleton instance of the GeneratorFactory. */</p></div>
-
<hr>

<h3 id="xml">xml</h3>
@@ -176,14 +165,14 @@
<hr>

<h3 id="callGenerator()">callGenerator</h3>
-<code class="signature">public static <a
href="../default/generator.html">Generator</a>
<strong>callGenerator</strong>(string generatorId)</code>
+<code class="signature">public static DOMDocument
<strong>callGenerator</strong>(string generatorId)</code>
<div class="details">
<p>
Used within the XSLT-Stylesheets to interpret the <generator /> tag.
</p><dl>
<dt>Parameters:</dt>
<dd>generatorId - The id of the Generator.</dd>
<dt>Returns:</dt>
-<dd>The Generator with the given id.</dd>
+<dd>The generated XML.</dd>
</dl>
</div>

@@ -193,7 +182,7 @@
<code class="signature">public void
<strong>setGeneratorsXMLPath</strong>(string generatorsXMLPath)</code>
<div class="details">
<p>
-Set the path of the file containing the xml-definition </p><dl>
+Set the path of the file containing the xml-definition</p><dl>
<dt>Parameters:</dt>
<dd>generatorsXMLPath - Path of the file containing the xml-definition</dd>
</dl>
=======================================
--- /framework/trunk/piwi/lib/piwi/generator/GeneratorFactory.class.php Sun
Nov 21 05:19:17 2010
+++ /framework/trunk/piwi/lib/piwi/generator/GeneratorFactory.class.php Sun
Nov 21 05:27:25 2010
@@ -7,7 +7,7 @@
private $generators = array();

/** Path of the file containing the xml-definition of the generators that
can be used. */
- public $generatorsXMLPath = null;
+ private $generatorsXMLPath = null;

/** The generators definition as xml. */
private $xml = null;
@@ -17,7 +17,15 @@
*/
public function __construct() {
}
-
+
+ /**
+ * Set the path of the file containing the xml-definition
+ * @param string $generatorsXMLPath Path of the file containing the
xml-definition
+ */
+ public function setGeneratorsXMLPath($generatorsXMLPath) {
+ $this->generatorsXMLPath = $generatorsXMLPath;
+ }
+
/**
* Used within the XSLT-Stylesheets to interpret the <generator /> tag.
* @param string $generatorId The id of the Generator.

Reply all
Reply to author
Forward
0 new messages