Location: PHPKode > projects > PHP on Trax > johnpipi-trax-f599562/trax/doc/__filesource/fsource_PHPonTrax__scriptgenerate.php.html
<html>
<head>
<title>File Source for generate.php</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">PHPonTrax</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_PHPonTrax.html" class="menu">class tree: PHPonTrax</a> ]
		  [ <a href="../elementindex_PHPonTrax.html" class="menu">index: PHPonTrax</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">
	<div id="todolist">
			<p><a href="../todolist.html">Todo List</a></p>
	</div>
      <b>Packages:</b><br />
              <a href="../li_PHPonTrax.html">PHPonTrax</a><br />
              <a href="../li_PHPonTraxTest.html">PHPonTraxTest</a><br />
            <br /><br />
                  
                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1 align="center">Source for file generate.php</h1>
<p>Documentation is available at <a href="../PHPonTrax/_script_generate_php.html">generate.php</a></p>
<div class="php">
<div class="listing"><pre><ol><li><a name="a1"></a>#! /usr/local/bin/php</li>
<li><a name="a2"></a><span class="src-php">&lt;?php</span></li>
<li><a name="a3"></a><span class="src-doc">/**</span></li>
<li><a name="a4"></a><span class="src-doc"> *  Command line script to generate a Trax application</span></li>
<li><a name="a5"></a><span class="src-doc"> *</span></li>
<li><a name="a6"></a><span class="src-doc"> *  (PHP 5)</span></li>
<li><a name="a7"></a><span class="src-doc"> *</span></li>
<li><a name="a8"></a><span class="src-doc"> *  </span><span class="src-doc-coretag">@package</span><span class="src-doc"> PHPonTrax</span></li>
<li><a name="a9"></a><span class="src-doc"> *  </span><span class="src-doc-coretag">@version</span><span class="src-doc"> $Id: generate.php 172 2006-03-13 19:52:52Z john $</span></li>
<li><a name="a10"></a><span class="src-doc"> *  </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> (c) 2005 John Peterson</span></li>
<li><a name="a11"></a><span class="src-doc"> *</span></li>
<li><a name="a12"></a><span class="src-doc"> *   Permission is hereby granted, free of charge, to any person obtaining</span></li>
<li><a name="a13"></a><span class="src-doc"> *   a copy of this software and associated documentation files (the</span></li>
<li><a name="a14"></a><span class="src-doc"> *   &quot;Software&quot;), to deal in the Software without restriction, including</span></li>
<li><a name="a15"></a><span class="src-doc"> *   without limitation the rights to use, copy, modify, merge, publish,</span></li>
<li><a name="a16"></a><span class="src-doc"> *   distribute, sublicense, and/or sell copies of the Software, and to</span></li>
<li><a name="a17"></a><span class="src-doc"> *   permit persons to whom the Software is furnished to do so, subject to</span></li>
<li><a name="a18"></a><span class="src-doc"> *   the following conditions:</span></li>
<li><a name="a19"></a><span class="src-doc"> *</span></li>
<li><a name="a20"></a><span class="src-doc"> *   The above copyright notice and this permission notice shall be</span></li>
<li><a name="a21"></a><span class="src-doc"> *   included in all copies or substantial portions of the Software.</span></li>
<li><a name="a22"></a><span class="src-doc"> *</span></li>
<li><a name="a23"></a><span class="src-doc"> *   THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND,</span></li>
<li><a name="a24"></a><span class="src-doc"> *   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF</span></li>
<li><a name="a25"></a><span class="src-doc"> *   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND</span></li>
<li><a name="a26"></a><span class="src-doc"> *   NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE</span></li>
<li><a name="a27"></a><span class="src-doc"> *   LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION</span></li>
<li><a name="a28"></a><span class="src-doc"> *   OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION</span></li>
<li><a name="a29"></a><span class="src-doc"> *   WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</span></li>
<li><a name="a30"></a><span class="src-doc"> *</span></li>
<li><a name="a31"></a><span class="src-doc"> *</span></li>
<li><a name="a32"></a><span class="src-doc"> *   &lt;p&gt;Sets up the Trax environment, creates a </span><span class="src-doc-inlinetag">{@link TraxGenerator}</span></li>
<li><a name="a33"></a><span class="src-doc"> *   object and calls its run() method to process the command line</span></li>
<li><a name="a34"></a><span class="src-doc"> *   arguments to the script&lt;/p&gt;</span></li>
<li><a name="a35"></a><span class="src-doc"> *</span></li>
<li><a name="a36"></a><span class="src-doc"> *   &lt;p&gt;Invoked from the command line by&lt;/p&gt;</span></li>
<li><a name="a37"></a><span class="src-doc"> *   &lt;p&gt;</span></li>
<li><a name="a38"></a><span class="src-doc"> *   &lt;samp&gt;php script/generate.php&lt;/samp&gt; &lt;i&gt;command [ arguments... ]&lt;/i&gt;</span></li>
<li><a name="a39"></a><span class="src-doc"> *   &lt;/p&gt;</span></li>
<li><a name="a40"></a><span class="src-doc"> *</span></li>
<li><a name="a41"></a><span class="src-doc"> *   &lt;p&gt;See the </span><span class="src-doc-inlinetag">{@link TraxGenerator}</span><span class="src-doc"> class definition for valid values</span></li>
<li><a name="a42"></a><span class="src-doc"> *   of &lt;i&gt;command [ arguments... ]&lt;/i&gt;&lt;/p&gt;</span></li>
<li><a name="a43"></a><span class="src-doc"> */</span></li>
<li><a name="a44"></a>&nbsp;</li>
<li><a name="a45"></a><span class="src-doc">/**</span></li>
<li><a name="a46"></a><span class="src-doc"> *  Load definitions of the Trax environment from </span><span class="src-doc-inlinetag">{@link environment.php}</span></li>
<li><a name="a47"></a><span class="src-doc"> */</span></li>
<li><a name="a48"></a><span class="src-inc">require_once</span><span class="src-sym">(</span><span class="src-id">dirname</span><span class="src-sym">(</span><span class="src-id">dirname</span><span class="src-sym">(</span>__FILE__<span class="src-sym">)) </span>. <span class="src-str">&quot;/config/environment.php&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a49"></a>&nbsp;</li>
<li><a name="a50"></a><span class="src-doc">/**</span></li>
<li><a name="a51"></a><span class="src-doc"> *  Load definition of the </span><span class="src-doc-inlinetag">{@link TraxGenerator}</span><span class="src-doc"> class</span></li>
<li><a name="a52"></a><span class="src-doc"> */</span></li>
<li><a name="a53"></a><span class="src-inc">require_once</span><span class="src-sym">(</span><span class="src-str">&quot;trax_generator.php&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a54"></a>&nbsp;</li>
<li><a name="a55"></a><span class="src-var">$generator </span>= <span class="src-key">new </span><span class="src-id"><a href="../PHPonTrax/TraxGenerator.html">TraxGenerator</a></span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a56"></a><span class="src-var">$generator</span><span class="src-sym">-&gt;</span><span class="src-id">run</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a57"></a>&nbsp;</li>
<li><a name="a58"></a><span class="src-php">?&gt;</span></li>
</ol></pre></div>
</div>
        <div class="credit">
		    <hr />
		    Documentation generated on Thu, 04 May 2006 19:22:35 -0600 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC4</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>
Return current item: PHP on Trax