Location: PHPKode > projects > PHP on Trax > johnpipi-trax-f599562/trax/doc/PHPonTrax/TraxGenerator.html
<html>
<head>
<title>Docs For Class TraxGenerator</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 />
		<b>Tutorials/Manuals:</b><br />
					<strong>Package-level:</strong>
							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_PHPonTrax.pkg.html">PHP On Trax</a>
<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_rails_examples.pkg.html">Examples From The Rails Book</a>
</ul>

<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_simpleapp.pkg.html">Build A Simple Trax Application</a>
</ul>

<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_database.pkg.html">Create A Database and User</a>
</ul>

<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_advbuild.pkg.html">Advanced Application Build Topics</a>
</ul>

<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_naming.pkg.html">The Trax Naming Convention</a>
</ul>

<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_troubleshoot.pkg.html">Troubleshooting</a>
</ul>

<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_reference.pkg.html">Reference</a>
</ul>

</li></ul>


										<strong>Class-level:</strong>
							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_ActiveRecordHelper.cls.html">ActiveRecordHelper</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_FormTagHelper.cls.html">FormTagHelper</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_Helpers.cls.html">Helpers</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_UrlHelper.cls.html">UrlHelper</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_FormHelper.cls.html">FormHelper</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_InputFilter.cls.html">InputFilter</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_ActionMailer.cls.html">ActionMailer</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_ApplicationController.cls.html">ApplicationController</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_ActionController.cls.html">ActionController</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_ActiveRecord.cls.html">ActiveRecord</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_DateHelper.cls.html">DateHelper</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_Router.cls.html">Router</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_FormOptionsHelper.cls.html">FormOptionsHelper</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_TraxGenerator.cls.html">TraxGenerator</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_Session.cls.html">Session</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_Inflector.cls.html">Inflector</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_ActiveRecordError.cls.html">ActiveRecordError</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_ActionControllerError.cls.html">ActionControllerError</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_ScaffoldController.cls.html">ScaffoldController</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_Dispatcher.cls.html">Dispatcher</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_TraxError.cls.html">TraxError</a>
</ul>


							<ul>
	<li type="square"><a href="../PHPonTrax/tutorial_ApplicationMailer.cls.html">ApplicationMailer</a>
</ul>


							                        <b>Files:</b><br />
      	  <div class="package">
			<a href="../PHPonTrax/_vendor_trax_action_controller_php.html">		action_controller.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_action_mailer_php.html">		action_mailer.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_action_view_php.html">		action_view.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_active_record_php.html">		active_record.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_action_view_helpers_active_record_helper_php.html">		active_record_helper.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_add_phtml.html">		add.phtml
		</a><br>
			<a href="../PHPonTrax/_data_app_controllers_application_php.html">		application.php
		</a><br>
			<a href="../PHPonTrax/_data_app_views_layouts_application_phtml.html">		application.phtml
		</a><br>
			<a href="../PHPonTrax/_data_app_helpers_application_helper_php.html">		application_helper.php
		</a><br>
			<a href="../PHPonTrax/_data_app_application_mailer_php.html">		application_mailer.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_action_view_helpers_asset_tag_helper_php.html">		asset_tag_helper.php
		</a><br>
			<a href="../PHPonTrax/_test_layouts_catalog_phtml.html">		catalog.phtml
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_controller_php.html">		controller.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_templates_controller_php.html">		controller.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_action_view_helpers_date_helper_php.html">		date_helper.php
		</a><br>
			<a href="../PHPonTrax/_data_config_environments_development_php.html">		development.php
		</a><br>
			<a href="../PHPonTrax/_data_public_dispatch_php.html">		dispatch.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_dispatcher_php.html">		dispatcher.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_edit_phtml.html">		edit.phtml
		</a><br>
			<a href="../PHPonTrax/_data_config_environment_php.html">		environment.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_templates_error_phtml.html">		error.phtml
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_helper_php.html">		form_helper.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_options_helper_php.html">		form_options_helper.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_form_scaffolding_phtml.html">		form_scaffolding.phtml
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_tag_helper_php.html">		form_tag_helper.php
		</a><br>
			<a href="../PHPonTrax/_data_script_generate_php.html">		generate.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_templates_helper_php.html">		helper.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_action_view_helpers_php.html">		helpers.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_index_phtml.html">		index.phtml
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_inflector_php.html">		inflector.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_input_filter_php.html">		input_filter.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_action_view_helpers_javascript_helper_php.html">		javascript_helper.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_layout_phtml.html">		layout.phtml
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_layout_phtml.html">		layout.phtml
		</a><br>
			<a href="../PHPonTrax/_makepkg_php.html">		makepkg.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_templates_model_php.html">		model.php
		</a><br>
			<a href="../PHPonTrax/_data_config_environments_production_php.html">		production.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_router_php.html">		router.php
		</a><br>
			<a href="../PHPonTrax/_data_config_routes_php.html">		routes.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_scaffold_controller_php.html">		scaffold_controller.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_session_php.html">		session.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_show_phtml.html">		show.phtml
		</a><br>
			<a href="../PHPonTrax/_data_config_environments_test_php.html">		test.php
		</a><br>
			<a href="../PHPonTrax/_trax_php.html">		trax.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_trax_exceptions_php.html">		trax_exceptions.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_trax_generator_php.html">		trax_generator.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_action_view_helpers_url_helper_php.html">		url_helper.php
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_templates_view_phtml.html">		view.phtml
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_view_add_phtml.html">		view_add.phtml
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_view_edit_phtml.html">		view_edit.phtml
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_view_index_phtml.html">		view_index.phtml
		</a><br>
			<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_view_show_phtml.html">		view_show.phtml
		</a><br>
	  </div><br />

      
            <b>Classes:</b><br />
        <div class="package">
		    		<a href="../PHPonTrax/.html"></a><br />
	    		<a href="../PHPonTrax/ActionController.html">ActionController</a><br />
	    		<a href="../PHPonTrax/ActionControllerError.html">ActionControllerError</a><br />
	    		<a href="../PHPonTrax/ActionMailer.html">ActionMailer</a><br />
	    		<a href="../PHPonTrax/ActiveRecord.html">ActiveRecord</a><br />
	    		<a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</a><br />
	    		<a href="../PHPonTrax/ActiveRecordHelper.html">ActiveRecordHelper</a><br />
	    		<a href="../PHPonTrax/ApplicationController.html">ApplicationController</a><br />
	    		<a href="../PHPonTrax/ApplicationMailer.html">ApplicationMailer</a><br />
	    		<a href="../PHPonTrax/AssetTagHelper.html">AssetTagHelper</a><br />
	    		<a href="../PHPonTrax/DateHelper.html">DateHelper</a><br />
	    		<a href="../PHPonTrax/Dispatcher.html">Dispatcher</a><br />
	    		<a href="../PHPonTrax/FormHelper.html">FormHelper</a><br />
	    		<a href="../PHPonTrax/FormOptionsHelper.html">FormOptionsHelper</a><br />
	    		<a href="../PHPonTrax/FormTagHelper.html">FormTagHelper</a><br />
	    		<a href="../PHPonTrax/Helpers.html">Helpers</a><br />
	    		<a href="../PHPonTrax/Inflector.html">Inflector</a><br />
	    		<a href="../PHPonTrax/InputFilter.html">InputFilter</a><br />
	    		<a href="../PHPonTrax/JavaScriptHelper.html">JavaScriptHelper</a><br />
	    		<a href="../PHPonTrax/Router.html">Router</a><br />
	    		<a href="../PHPonTrax/ScaffoldController.html">ScaffoldController</a><br />
	    		<a href="../PHPonTrax/Session.html">Session</a><br />
	    		<a href="../PHPonTrax/TraxError.html">TraxError</a><br />
	    		<a href="../PHPonTrax/TraxGenerator.html">TraxGenerator</a><br />
	    		<a href="../PHPonTrax/UrlHelper.html">UrlHelper</a><br />
	  </div>

                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1>Class: TraxGenerator</h1>
Source Location: /vendor/trax/trax_generator.php<br /><br />


<table width="100%" border="0">
<tr><td valign="top">

<h3><a href="#class_details">Class Overview</a></h3>
<pre></pre><br />
<div class="description">Generate application files in the Trax work area</div><br /><br />







</td>

<td valign="top">
<h3><a href="#class_vars">Variables</a></h3>
<ul>
    <li><a href="../PHPonTrax/TraxGenerator.html#var$controller_class">$controller_class</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#var$controller_path">$controller_path</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#var$controller_template_file">$controller_template_file</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#var$extra_path">$extra_path</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#var$helper_path">$helper_path</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#var$helper_template_file">$helper_template_file</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#var$layouts_path">$layouts_path</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#var$layout_filename">$layout_filename</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#var$mkdir_cmd">$mkdir_cmd</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#var$model_path">$model_path</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#var$model_template_file">$model_template_file</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#var$scaffold_template_path">$scaffold_template_path</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#var$view_file_extention">$view_file_extention</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#var$view_path">$view_path</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#var$view_template_file">$view_template_file</a></li>
  </ul>
</td>


<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
    <li><a href="../PHPonTrax/TraxGenerator.html#method__construct">__construct</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#methodcontroller_help">controller_help</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#methodcreate_controller">create_controller</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#methodcreate_helper">create_helper</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#methodcreate_view">create_view</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#methodexec">exec</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#methodfix_php_brackets">fix_php_brackets</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_controller">generate_controller</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_model">generate_model</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_scaffold">generate_scaffold</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#methodgenerator_help">generator_help</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#methodmodel_help">model_help</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#methodrun">run</a></li>
    <li><a href="../PHPonTrax/TraxGenerator.html#methodscaffold_help">scaffold_help</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_PHPonTrax__vendortraxtrax_generator.php.html#a44">44</a>]<br />
Generate application files in the Trax work area<br /><br /><p>Implements the commands of <a href="../PHPonTrax/_data_script_generate_php.html">script/generate.php</a>   &lt;p&gt;Legal commands:&lt;/p&gt;   <ul><li><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_controller">controller</a></li><li><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_model">model</a></li><li><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_scaffold">scaffold</a></li></ul></p><br /></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$controller_class"></a>
	<p></p>
	<h4>$controller_class = <span class="value"></span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a135">135</a>]</p>
  CamelCase name of the controller class<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodcreate_view">TraxGenerator::create_view()</a> - Must be set before call.
                                Not changed during call.</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodcreate_helper">TraxGenerator::create_helper()</a> - Must be set before call.
                              Not changed during call.</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodcreate_controller">TraxGenerator::create_controller()</a> - Must be set before call.
                            Not changed during call.</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_controller">TraxGenerator::generate_controller()</a> - Set during call</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$controller_path"></a>
	<p></p>
	<h4>$controller_path = <span class="value"></span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a56">56</a>]</p>
  Filesystem path to the app/controllers directory in the Trax work area<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_controller">TraxGenerator::generate_controller()</a> - Must be set before call.</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodcreate_controller">TraxGenerator::create_controller()</a> - Must be set before call.
                            Not changed during call.</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#method__construct">TraxGenerator::__construct()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$controller_template_file"></a>
	<p></p>
	<h4>$controller_template_file = <span class="value"></span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a89">89</a>]</p>
  Filesystem path to the templates/controller.php file<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodcreate_controller">TraxGenerator::create_controller()</a> - Must be set before call.
                            Not changed during call.</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#method__construct">TraxGenerator::__construct()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$extra_path"></a>
	<p></p>
	<h4>$extra_path = <span class="value"></span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a77">77</a>]</p>
  Generated subdirectories in the Trax work area<br /><br /><p>When a controller is generated with a name that includes '/',   $extra_path is set to the implied subdirectories.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_controller">TraxGenerator::generate_controller()</a> - Set during call</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$helper_path"></a>
	<p></p>
	<h4>$helper_path = <span class="value"></span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a62">62</a>]</p>
  Filesystem path to the app/helpers directory in the Trax work area<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_controller">TraxGenerator::generate_controller()</a> - Must be set before call.</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodcreate_helper">TraxGenerator::create_helper()</a> - Must be set before call.
                              Not changed during call.</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#method__construct">TraxGenerator::__construct()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$helper_template_file"></a>
	<p></p>
	<h4>$helper_template_file = <span class="value"></span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a95">95</a>]</p>
  Filesystem path to the templates/helper.php file<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodcreate_helper">TraxGenerator::create_helper()</a> - Must be set before call.
                              Not changed during call.</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#method__construct">TraxGenerator::__construct()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$layouts_path"></a>
	<p></p>
	<h4>$layouts_path = <span class="value"></span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a120">120</a>]</p>
  Filesystem path to the app/views/layouts/ directory in the<br /><br /><p>Trax work area</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#method__construct">TraxGenerator::__construct()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_controller">TraxGenerator::generate_controller()</a> - Must be set before call.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$layout_filename"></a>
	<p></p>
	<h4>$layout_filename = <span class="value"></span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a129">129</a>]</p>
  <br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_scaffold">TraxGenerator::generate_scaffold()</a> - Set as output from
                                  generate_controller().
                                  Not changed afterward.</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_controller">TraxGenerator::generate_controller()</a> - Set during call</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td><p>Document this variable</p><p>Value is set by <a href="../PHPonTrax/TraxGenerator.html#methodgenerate_controller">generate_controller()</a> and used by   <a href="../PHPonTrax/TraxGenerator.html#methodgenerate_scaffold">generate_scaffold()</a></p></td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$mkdir_cmd"></a>
	<p></p>
	<h4>$mkdir_cmd = <span class="value"></span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a83">83</a>]</p>
  Platform-dependent command to make a directory<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$model_path"></a>
	<p></p>
	<h4>$model_path = <span class="value"></span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a68">68</a>]</p>
  Filesystem path to the app/model directory in the Trax work area<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_model">TraxGenerator::generate_model()</a> - Must be set before call.
                             Not changed during call.</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#method__construct">TraxGenerator::__construct()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$model_template_file"></a>
	<p></p>
	<h4>$model_template_file = <span class="value"></span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a107">107</a>]</p>
  Filesystem path to the templates/model.php file<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_model">TraxGenerator::generate_model()</a> - Must be set before call.
                             Not changed during call.</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#method__construct">TraxGenerator::__construct()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$scaffold_template_path"></a>
	<p></p>
	<h4>$scaffold_template_path = <span class="value"></span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a113">113</a>]</p>
  Filesystem path to templates/scaffolds/generator_templates directory<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#method__construct">TraxGenerator::__construct()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$view_file_extention"></a>
	<p></p>
	<h4>$view_file_extention = <span class="value">&nbsp;TRAX_VIEWS_EXTENTION</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a141">141</a>]</p>
  Value of the view files extension (usually '.phtml')<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$view_path"></a>
	<p></p>
	<h4>$view_path = <span class="value"></span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a50">50</a>]</p>
  Filesystem path to the app/views directory in the Trax work area<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_controller">TraxGenerator::generate_controller()</a> - Must be set before call.</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodcreate_view">TraxGenerator::create_view()</a> - Must be set before call.
                                Not changed during call.</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#method__construct">TraxGenerator::__construct()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$view_template_file"></a>
	<p></p>
	<h4>$view_template_file = <span class="value"></span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a101">101</a>]</p>
  Filesystem path to the templates/view.phtml file<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodcreate_view">TraxGenerator::create_view()</a> - Must be set before call.
                                Not changed during call.</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#method__construct">TraxGenerator::__construct()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</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="method__construct"></a>
	<h3>constructor __construct <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a163">163</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>TraxGenerator __construct(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Constructor for the TraxGenerator object<br /><br /><p>Compute and store filesystem paths to the various   subdirectories of the Trax work area and the template files   used to generate application files</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$model_template_file">TraxGenerator::$model_template_file</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$scaffold_template_path">TraxGenerator::$scaffold_template_path</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$view_path">TraxGenerator::$view_path</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$view_template_file">TraxGenerator::$view_template_file</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$model_path">TraxGenerator::$model_path</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$layouts_path">TraxGenerator::$layouts_path</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$controller_path">TraxGenerator::$controller_path</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$controller_template_file">TraxGenerator::$controller_template_file</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$helper_path">TraxGenerator::$helper_path</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$helper_template_file">TraxGenerator::$helper_template_file</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>$GLOBALS['TRAX_INCLUDES']</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcontroller_help"></a>
	<h3>method controller_help <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a800">800</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 controller_help(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Output console help message for &quot;generate controller&quot;<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodrun">TraxGenerator::run()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcreate_controller"></a>
	<h3>method create_controller <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a647">647</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 create_controller(
string
$controller, [string[]
$views = ""])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Create a controller file with optional view methods<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_controller">TraxGenerator::generate_controller()</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Should return succeed/fail indication</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$controller_template_file">TraxGenerator::$controller_template_file</a> - Must be set before call.
                            Not changed during call.</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$controller_path">TraxGenerator::$controller_path</a> - Must be set before call.
                            Not changed during call.</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$controller_class">TraxGenerator::$controller_class</a> - Must be set before call.
                            Not changed during call.</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$controller</b>&nbsp;&nbsp;</td>
        <td>Name of the controller</td>
      </tr>
          <tr>
        <td class="type">string[]&nbsp;&nbsp;</td>
        <td><b>$views</b>&nbsp;&nbsp;</td>
        <td>Name(s) of view(s), if any</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcreate_helper"></a>
	<h3>method create_helper <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a707">707</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 create_helper(
string
$controller)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Create a helper file for a controller<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_controller">TraxGenerator::generate_controller()</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Should return succeed/fail indication</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$helper_template_file">TraxGenerator::$helper_template_file</a> - Must be set before call.
                              Not changed during call.</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$helper_path">TraxGenerator::$helper_path</a> - Must be set before call.
                              Not changed during call.</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$controller_class">TraxGenerator::$controller_class</a> - Must be set before call.
                              Not changed during call.</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$controller</b>&nbsp;&nbsp;</td>
        <td>Name of the controller</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcreate_view"></a>
	<h3>method create_view <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a749">749</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 create_view(
string
$view, string
$controller)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Create a view file if it doesn't exist<br /><br /><p>Create a view file in the Trax work area if the required file   does not yet exist.  Generate the view file contents by   customizing the view template file with information about the   controller and view names.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Should return succeed/fail indication</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_controller">TraxGenerator::generate_controller()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$view_template_file">TraxGenerator::$view_template_file</a> - Must be set before call.
                                Not changed during call.</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$view_path">TraxGenerator::$view_path</a> - Must be set before call.
                                Not changed during call.</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>view_file_extension - Must be set before call.
                                Not changed during call.</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$controller_class">TraxGenerator::$controller_class</a> - Must be set before call.
                                Not changed during call.</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$view</b>&nbsp;&nbsp;</td>
        <td>Name of the view</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$controller</b>&nbsp;&nbsp;</td>
        <td>Name of the controller</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodexec"></a>
	<h3>method exec <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a778">778</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 exec(
string
$cmd)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Execute an operating system command<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Replace with calls to filesystem methods</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$cmd</b>&nbsp;&nbsp;</td>
        <td>Command to be executed</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodfix_php_brackets"></a>
	<h3>method fix_php_brackets <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a792">792</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 fix_php_brackets(
string
$string)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Replace &quot;&lt; ?php ... ? &gt;&quot; with &quot;&lt;?php ... ?&gt;&quot;<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>Edited input string</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_scaffold">TraxGenerator::generate_scaffold()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$string</b>&nbsp;&nbsp;</td>
        <td>String to be edited</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgenerate_controller"></a>
	<h3>method generate_controller <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a329">329</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 generate_controller(
string
$name, [string
$views = ""], [boolean
$scaffolding = false])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Implement &quot;generate controller&quot; command<br /><br /><p>Example:<br /><samp>php script/generate.php controller</samp>   <em>SomeName</em><br />   will generate:</p><p><ul><li>a file
  <samp>app/controllers/</samp><em>some_name</em><samp>_controller.php</samp><br />
  containing the class definition<br />
  <samp>class</samp> <em>SomeName</em><samp>Controller extends
  ApplicationController {}</samp></li><li>a file
  <samp>app/helpers/</samp><em>some_name</em><samp>_helper.php</samp></li><li>a directory
  <samp>app/views/</samp><em>some_name</em></li></ul>
  Optionally, one or more views can be appended to the command:<br />   <samp>php script/generate.php controller</samp>   <em>SomeName view1 view2</em><br />   which will additionally generate files:<br />   <samp>app/views/</samp><em>some_name/view1</em><samp>.phtml</samp><br />   <samp>app/views/</samp><em>some_name/view2</em><samp>.phtml</samp></p><p></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$layout_filename">TraxGenerator::$layout_filename</a> - Set during call</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$layouts_path">TraxGenerator::$layouts_path</a> - Must be set before call.</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$view_path">TraxGenerator::$view_path</a> - Must be set before call.</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodrun">TraxGenerator::run()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_scaffold">TraxGenerator::generate_scaffold()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$helper_path">TraxGenerator::$helper_path</a> - Must be set before call.</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$extra_path">TraxGenerator::$extra_path</a> - Set during call</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$controller_path">TraxGenerator::$controller_path</a> - Must be set before call.</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$controller_class">TraxGenerator::$controller_class</a> - Set during call</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodcreate_controller">TraxGenerator::create_controller()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodcreate_helper">TraxGenerator::create_helper()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodcreate_view">TraxGenerator::create_view()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/Inflector.html#methodunderscore">Inflector::underscore()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$name</b>&nbsp;&nbsp;</td>
        <td>Name in CamelCase of the controller to generate.                       The value may include '/' which will cause                       creation of subdirectories indicated to                       hold the controller and view files.</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$views</b>&nbsp;&nbsp;</td>
        <td>Optional list of views to generate</td>
      </tr>
          <tr>
        <td class="type">boolean&nbsp;&nbsp;</td>
        <td><b>$scaffolding</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgenerate_model"></a>
	<h3>method generate_model <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a407">407</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 generate_model(
string
$name)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Implement the &quot;generate model&quot; command<br /><br /><p>Example:<br /><samp>php script/generate.php model</samp>   <em>SomeName</em><br />   will generate a file   <samp>app/models/</samp><em>some_name</em><samp>.php</samp><br />   containing the class definition<br />   <samp>class</samp> <em>SomeName</em> <samp>extends
  ActiveRecord {}</samp></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_scaffold">TraxGenerator::generate_scaffold()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodrun">TraxGenerator::run()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$model_template_file">TraxGenerator::$model_template_file</a> - Must be set before call.
                             Not changed during call.</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$model_path">TraxGenerator::$model_path</a> - Must be set before call.
                             Not changed during call.</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/Inflector.html#methodunderscore">Inflector::underscore()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$name</b>&nbsp;&nbsp;</td>
        <td>Name of the model.  May be in either                 under_score or CamelCase.  If no '_' exists in                 $name it is treated as CamelCase.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgenerate_scaffold"></a>
	<h3>method generate_scaffold <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a455">455</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 generate_scaffold(
string
$model_name, string
$controller_name, [string
$views = ""])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Implement the &quot;generate scaffold&quot; command<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/Inflector.html#methodunderscore">Inflector::underscore()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#var$layout_filename">TraxGenerator::$layout_filename</a> - Set as output from
                                  generate_controller().
                                  Not changed afterward.</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodfix_php_brackets">TraxGenerator::fix_php_brackets()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodrun">TraxGenerator::run()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/Inflector.html#methodsingularize">Inflector::singularize()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/Inflector.html#methodpluralize">Inflector::pluralize()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_model">TraxGenerator::generate_model()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/Inflector.html#methodclassify">Inflector::classify()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/Inflector.html#methodhumanize">Inflector::humanize()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_controller">TraxGenerator::generate_controller()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$model_name</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$controller_name</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$views</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgenerator_help"></a>
	<h3>method generator_help <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a874">874</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 generator_help(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Output console help message for unrecognized command<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodrun">TraxGenerator::run()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodmodel_help"></a>
	<h3>method model_help <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a828">828</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 model_help(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Output console help message for &quot;generate model&quot;<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodrun">TraxGenerator::run()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodrun"></a>
	<h3>method run <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a204">204</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 run(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Parse command line and carry out the command<br /><br /><p>Command line arguments, if any are in $_SERVER['argv']</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodmodel_help">TraxGenerator::model_help()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodscaffold_help">TraxGenerator::scaffold_help()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerator_help">TraxGenerator::generator_help()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_scaffold">TraxGenerator::generate_scaffold()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_controller">TraxGenerator::generate_controller()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodgenerate_model">TraxGenerator::generate_model()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodcontroller_help">TraxGenerator::controller_help()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodscaffold_help"></a>
	<h3>method scaffold_help <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxtrax_generator.php.html#a844">844</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 scaffold_help(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Output console help message for &quot;generate scaffold&quot;<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/TraxGenerator.html#methodrun">TraxGenerator::run()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
</div><br />


        <div class="credit">
		    <hr />
		    Documentation generated on Thu, 04 May 2006 19:48:03 -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