Changeset 183

Show
Ignore:
Timestamp:
04/17/07 14:41:51 (1 year ago)
Author:
mrook
Message:

Fix some typos (mentioned in issue #88)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/docs/phing_guide/book/chapters/appendixes/AppendixB-CoreTasks.html

    r182 r183  
    2626<h2><a name="AdhocTaskdefTask"></a>AdhocTaskdefTask</h2> 
    2727<p> The AdhocTaskdefTask allows you to define a task within your build file.</p> 
    28 <pre title="Example of how to use AppendTask">&lt;target name=&quot;main&quot;<br />        description=&quot;==&gt;test AdhocTask &quot;&gt;<br />           <br />          &lt;adhoc-task name=&quot;foo&quot;&gt;&lt;![CDATA[<br />                       class FooTest extends Task {<br />                              private $bar;<br />                             <br />                          function setBar($bar) {<br />                                   $this-&gt;bar = $bar;<br />                             }<br />                         <br />                          function main() {<br />                                 $this-&gt;log(&quot;In FooTest: &quot; . $this-&gt;bar);<br />                          }<br />                 }<br />         ]]&gt;&lt;/adhoc-task&gt;<br /> <br />          &lt;foo bar=&quot;B.L.I.N.G&quot;/&gt;<br />&lt;/target&gt;</pre> 
     28<pre title="Example of how to use AdhocTaskdefTask">&lt;target name=&quot;main&quot;<br />        description=&quot;==&gt;test AdhocTask &quot;&gt;<br />             <br />          &lt;adhoc-task name=&quot;foo&quot;&gt;&lt;![CDATA[<br />                       class FooTest extends Task {<br />                              private $bar;<br />                             <br />                          function setBar($bar) {<br />                                   $this-&gt;bar = $bar;<br />                             }<br />                         <br />                          function main() {<br />                                 $this-&gt;log(&quot;In FooTest: &quot; . $this-&gt;bar);<br />                          }<br />                 }<br />         ]]&gt;&lt;/adhoc-task&gt;<br /> <br />          &lt;foo bar=&quot;B.L.I.N.G&quot;/&gt;<br />&lt;/target&gt;</pre> 
    2929<p> Note that you should use &lt;![CDATA[ ... ]]&gt; so that you don't have to 
    3030  quote entities within your<em> &lt;adhoc-task&gt;&lt;/adhoc-task&gt;</em> tags.</p> 
     
    5151</table> 
    5252<h2><a name="AdhocTypedefTask"></a>AdhocTypedefTask</h2> 
    53 <p> The AdhocTaskdefTask allows you to define a datatype within your build file.</p> 
    54 <pre title="Example of how to use AppendTask">&lt;target name=&quot;main&quot;<br />        description=&quot;==&gt;test AdhocType&quot;&gt;<br />            <br />          &lt;adhoc-type name=&quot;dsn&quot;&gt;&lt;![CDATA[<br />                       class CreoleDSN extends DataType {<br />                                private $url;<br />                             <br />                          function setUrl($url) {<br />                                   $this-&gt;url = $url;<br />                             }<br />                         <br />                          function getUrl() { 
     53<p> The AdhocTypedefTask allows you to define a datatype within your build file.</p> 
     54<pre title="Example of how to use AdhocTypedefTask">&lt;target name=&quot;main&quot;<br />        description=&quot;==&gt;test AdhocType&quot;&gt;<br />              <br />          &lt;adhoc-type name=&quot;dsn&quot;&gt;&lt;![CDATA[<br />                       class CreoleDSN extends DataType {<br />                                private $url;<br />                             <br />                          function setUrl($url) {<br />                                   $this-&gt;url = $url;<br />                             }<br />                         <br />                          function getUrl() { 
    5555                                return $this-&gt;url; 
    5656                                }                               <br />                  }<br />         ]]&gt;&lt;/adhoc-type&gt;<br />