Location: PHPKode > projects > PHP on Trax > johnpipi-trax-f599562/trax/doc/PHPonTrax/ActiveRecord.html
<html>
<head>
<title>Docs For Class ActiveRecord</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: ActiveRecord</h1>
Source Location: /vendor/trax/active_record.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">Base class for the ActiveRecord design pattern</div><br /><br />
<h4>Author(s):</h4>
<ul>
        </ul>




    


</td>

<td valign="top">
<h3><a href="#class_vars">Variables</a></h3>
<ul>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$aggregrations">$aggregrations</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$auto_create_timestamps">$auto_create_timestamps</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$auto_delete_habtm">$auto_delete_habtm</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$auto_save_associations">$auto_save_associations</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$auto_save_habtm">$auto_save_habtm</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$auto_timestamps">$auto_timestamps</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$auto_update_timestamps">$auto_update_timestamps</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$begin_executed">$begin_executed</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$belongs_to">$belongs_to</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$content_columns">$content_columns</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$database_name">$database_name</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$date_format">$date_format</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$db">$db</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$display">$display</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$errors">$errors</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$fetch_mode">$fetch_mode</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$force_reconnect">$force_reconnect</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$habtm_attributes">$habtm_attributes</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$has_and_belongs_to_many">$has_and_belongs_to_many</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$has_many">$has_many</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$has_one">$has_one</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$index_on">$index_on</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$new_record">$new_record</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$preserve_null_dates">$preserve_null_dates</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$primary_keys">$primary_keys</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$rows_per_page_default">$rows_per_page_default</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$save_associations">$save_associations</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$table_name">$table_name</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$time_format">$time_format</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#var$use_transactions">$use_transactions</a></li>
  </ul>
</td>


<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
    <li><a href="../PHPonTrax/ActiveRecord.html#method__construct">__construct</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodadd_error">add_error</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodadd_habtm_records">add_habtm_records</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodadd_record">add_record</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodadd_record_or_update_record">add_record_or_update_record</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodafter_create">after_create</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodafter_delete">after_delete</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodafter_save">after_save</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodafter_update">after_update</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodafter_validation">after_validation</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodafter_validation_on_create">after_validation_on_create</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodafter_validation_on_update">after_validation_on_update</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodaggregrate_all">aggregrate_all</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodbefore_create">before_create</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodbefore_delete">before_delete</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodbefore_save">before_save</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodbefore_update">before_update</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodbefore_validation">before_validation</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodbefore_validation_on_create">before_validation_on_create</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodbefore_validation_on_update">before_validation_on_update</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodbegin">begin</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodcheck_datetime">check_datetime</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodcolumn_attribute_exists">column_attribute_exists</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodcolumn_for_attribute">column_for_attribute</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodcommit">commit</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodcreate">create</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methoddelete">delete</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methoddelete_all">delete_all</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methoddelete_all_habtm_records">delete_all_habtm_records</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methoddelete_habtm_records">delete_habtm_records</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodestablish_connection">establish_connection</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodfind">find</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodfind_all">find_all</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodfind_all_habtm">find_all_habtm</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodfind_all_has_many">find_all_has_many</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodfind_by">find_by</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodfind_by_sql">find_by_sql</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodfind_first">find_first</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodfind_one_belongs_to">find_one_belongs_to</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodfind_one_has_one">find_one_has_one</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodget_association_type">get_association_type</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodget_attributes">get_attributes</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodget_errors">get_errors</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodget_errors_as_string">get_errors_as_string</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodget_insert_id">get_insert_id</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodget_join_table_name">get_join_table_name</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodget_primary_key_conditions">get_primary_key_conditions</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodget_updates_sql">get_updates_sql</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodis_error">is_error</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodis_new_record">is_new_record</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodlimit_select">limit_select</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodload">load</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodlog_query">log_query</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodpage_list">page_list</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodquery">query</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodquoted_attributes">quoted_attributes</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodraise">raise</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodreload">reload</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodrollback">rollback</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodsave">save</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodsave_association">save_association</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodsave_associations">save_associations</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodsave_without_validation">save_without_validation</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodsend">send</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodset_content_columns">set_content_columns</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodset_habtm_attributes">set_habtm_attributes</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodset_table_name_using_class_name">set_table_name_using_class_name</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodupdate">update</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodupdate_all">update_all</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodupdate_attributes">update_attributes</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodupdate_habtm_records">update_habtm_records</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodupdate_record">update_record</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodvalid">valid</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodvalidate">validate</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodvalidate_model_attributes">validate_model_attributes</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodvalidate_on_create">validate_on_create</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#methodvalidate_on_update">validate_on_update</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#method__call">__call</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#method__get">__get</a></li>
    <li><a href="../PHPonTrax/ActiveRecord.html#method__set">__set</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__vendortraxactive_record.php.html#a62">62</a>]<br />
Base class for the ActiveRecord design pattern<br /><br /><p>Each subclass of this class is associated with a database table   in the Model section of the Model-View-Controller architecture.   By convention, the name of each subclass is the CamelCase singular   form of the table name, which is in the lower_case_underscore   plural notation.  For example,   a table named &quot;order_details&quot; would be associated with a subclass   of ActiveRecord named &quot;OrderDetail&quot;, and a table named &quot;people&quot;   would be associated with subclass &quot;Person&quot;.  See the tutorial   <a href="../PHPonTrax/tutorial_naming.pkg.html">The Trax Naming Convention</a></p><p>For a discussion of the ActiveRecord design pattern, see   &quot;Patterns of Enterprise   Application Architecture&quot; by Martin Fowler, pp. 160-164.</p><p>Unit tester: <a href="../PHPonTraxTest/ActiveRecordTest.html">ActiveRecordTest</a></p><p></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>tutorial:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/tutorial_ActiveRecord.cls.html">ActiveRecord</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$aggregrations"></a>
	<p></p>
	<h4>$aggregrations = <span class="value">array(&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;max&quot;,&quot;min&quot;)</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a250">250</a>]</p>
  SQL aggregate functions that may be applied to the associated   table.<br /><br /><p>SQL defines aggregate functions AVG, COUNT, MAX, MIN and SUM.   Not all of these functions are implemented by all DBMS's</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/ActiveRecord.html#method__call">ActiveRecord::__call()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</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$auto_create_timestamps"></a>
	<p></p>
	<h4>$auto_create_timestamps = <span class="value">array(&quot;created_at&quot;,&quot;created_on&quot;)</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a213">213</a>]</p>
  Names of automatic create timestamp columns<br /><br /><p>When a row containing one of these columns is created and   <a href="../PHPonTrax/ActiveRecord.html#var$auto_timestamps">$auto_timestamps</a> is true, store the current date and   time in the timestamp columns.</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/ActiveRecord.html#methodcheck_datetime">ActiveRecord::check_datetime()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$auto_update_timestamps">ActiveRecord::$auto_update_timestamps</a></td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$auto_timestamps">ActiveRecord::$auto_timestamps</a></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$auto_delete_habtm"></a>
	<p></p>
	<h4>$auto_delete_habtm = <span class="value">&nbsp;true</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a314">314</a>]</p>
  <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>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this variable</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>mixed</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$auto_save_associations"></a>
	<p></p>
	<h4>$auto_save_associations = <span class="value">&nbsp;true</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a178">178</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/ActiveRecord.html#methodupdate_attributes">ActiveRecord::update_attributes()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodsave_associations">ActiveRecord::save_associations()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__set">ActiveRecord::__set()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this property</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>boolean</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$auto_save_habtm"></a>
	<p></p>
	<h4>$auto_save_habtm = <span class="value">&nbsp;true</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a309">309</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/ActiveRecord.html#methodadd_record">ActiveRecord::add_record()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this variable</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>mixed</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$auto_timestamps"></a>
	<p></p>
	<h4>$auto_timestamps = <span class="value">&nbsp;true</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a304">304</a>]</p>
  Whether to automatically update timestamps in certain columns<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/ActiveRecord.html#methodcheck_datetime">ActiveRecord::check_datetime()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$auto_update_timestamps">ActiveRecord::$auto_update_timestamps</a></td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$auto_create_timestamps">ActiveRecord::$auto_create_timestamps</a></td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>boolean</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$auto_update_timestamps"></a>
	<p></p>
	<h4>$auto_update_timestamps = <span class="value">array(&quot;updated_at&quot;,&quot;updated_on&quot;)</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a201">201</a>]</p>
  Names of automatic update timestamp columns<br /><br /><p>When a row containing one of these columns is updated and   <a href="../PHPonTrax/ActiveRecord.html#var$auto_timestamps">$auto_timestamps</a> is true, update the contents of the   timestamp columns with the current date and time.</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/ActiveRecord.html#methodcheck_datetime">ActiveRecord::check_datetime()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$auto_create_timestamps">ActiveRecord::$auto_create_timestamps</a></td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$auto_timestamps">ActiveRecord::$auto_timestamps</a></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$begin_executed"></a>
	<p></p>
	<h4>$begin_executed = <span class="value">&nbsp;false</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a320">320</a>]</p>
  Transactions (only use if your db supports it)<br /><br /><p><strong>FIXME: static should be after private</strong></p><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>
  <tr>
    <td><b>static:</b>&nbsp;&nbsp;</td><td></td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>mixed</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$belongs_to"></a>
	<p></p>
	<h4>$belongs_to = <span class="value">&nbsp;null</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a161">161</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/ActiveRecord.html#methodget_association_type">ActiveRecord::get_association_type()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__call">ActiveRecord::__call()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__get">ActiveRecord::__get()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this variable</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$content_columns"></a>
	<p></p>
	<h4>$content_columns = <span class="value">&nbsp;null</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a99">99</a>]</p>
  Description of a row in the associated table in the database<br /><br /><p>Retrieved from the RDBMS by <a href="../PHPonTrax/ActiveRecord.html#methodset_content_columns">set_content_columns()</a>.   See <a href="http://pear.php.net/manual/en/package.database.db.db-common.tableinfo.php">DB_common::tableInfo()</a> for the format.  <strong>NOTE:</strong> Some   RDBMS's don't return all values.</p><p>An additional element 'human_name' is added to each column   by <a href="../PHPonTrax/ActiveRecord.html#methodset_content_columns">set_content_columns()</a>.  The actual value contained   in each column is stored in an object variable with the name   given by the 'name' element of the column description for each   column.</p><p><strong>NOTE:</strong>The information from the database about which   columns are primary keys is <strong>not used</strong>.  Instead, the   primary keys in the table are listed in <a href="../PHPonTrax/ActiveRecord.html#var$primary_keys">$primary_keys</a>,   which is maintained independently.</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/ActiveRecord.html#methodget_attributes">ActiveRecord::get_attributes()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodset_content_columns">ActiveRecord::set_content_columns()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodcolumn_attribute_exists">ActiveRecord::column_attribute_exists()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodcheck_datetime">ActiveRecord::check_datetime()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodcolumn_for_attribute">ActiveRecord::column_for_attribute()</a></td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodquoted_attributes">ActiveRecord::quoted_attributes()</a></td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__set">ActiveRecord::__set()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$primary_keys">ActiveRecord::$primary_keys</a></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$database_name"></a>
	<p></p>
	<h4>$database_name = <span class="value">&nbsp;null</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a118">118</a>]</p>
  Database name override<br /><br /><p>Name of the database to use, if you are not using the value   read from file config/database.ini</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/ActiveRecord.html#methodestablish_connection">ActiveRecord::establish_connection()</a></td>
  </tr>
  <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$date_format"></a>
	<p></p>
	<h4>$date_format = <span class="value">&nbsp;&quot;Y-m-d&quot;</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a222">222</a>]</p>
  Date format for use with auto timestamping<br /><br /><p>The format for this should be compatiable with the php date() function.   http://www.php.net/date</p><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>protected</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$db"></a>
	<p></p>
	<h4>$db = <span class="value">&nbsp;null</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a73">73</a>]</p>
  Reference to the database object<br /><br /><p>Reference to the database object returned by   <a href="http://pear.php.net/manual/en/package.database.db.db.connect.php">PEAR DB::Connect()</a></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>var:</b>&nbsp;&nbsp;</td><td>see   <a href="http://pear.php.net/manual/en/package.database.db.php">PEAR DB</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodquery">ActiveRecord::query()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodset_content_columns">ActiveRecord::set_content_columns()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodget_insert_id">ActiveRecord::get_insert_id()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodestablish_connection">ActiveRecord::establish_connection()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodrollback">ActiveRecord::rollback()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodcommit">ActiveRecord::commit()</a></td>
  </tr>
  <tr>
    <td><b>static:</b>&nbsp;&nbsp;</td><td></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodsend">ActiveRecord::send()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodbegin">ActiveRecord::begin()</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>object DB</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$display"></a>
	<p></p>
	<h4>$display = <span class="value">&nbsp;10</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a278">278</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/ActiveRecord.html#methodpage_list">ActiveRecord::page_list()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this variable</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>mixed</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$errors"></a>
	<p></p>
	<h4>$errors = <span class="value">array()</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a295">295</a>]</p>
  Description of non-fatal errors found<br /><br /><p>For every non-fatal error found, an element describing the   error is added to $errors.  Initialized to an empty array in   <a href="../PHPonTrax/ActiveRecord.html#methodvalid">valid()</a> before validating object.  When an error   message is associated with a particular attribute, the message   should be stored with the attribute name as its key.  If the   message is independent of attributes, store it with a numeric   key beginning with 0.</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/ActiveRecord.html#methodget_errors">ActiveRecord::get_errors()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodvalid">ActiveRecord::valid()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodvalidate_model_attributes">ActiveRecord::validate_model_attributes()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodadd_error">ActiveRecord::add_error()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methoddelete_all">ActiveRecord::delete_all()</a></td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodget_errors">ActiveRecord::get_errors()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methoddelete">ActiveRecord::delete()</a></td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodadd_error">ActiveRecord::add_error()</a></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$fetch_mode"></a>
	<p></p>
	<h4>$fetch_mode = <span class="value">&nbsp;DB_FETCHMODE_ASSOC</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a128">128</a>]</p>
  Mode to use when fetching data from database<br /><br /><p>See <a href="http://pear.php.net/manual/en/package.database.db.db-common.setfetchmode.php">the relevant PEAR DB class documentation</a></p><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>integer</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$force_reconnect"></a>
	<p></p>
	<h4>$force_reconnect = <span class="value">&nbsp;false</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a135">135</a>]</p>
  Force reconnect to database<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/ActiveRecord.html#methodestablish_connection">ActiveRecord::establish_connection()</a></td>
  </tr>
  <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>boolean</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$habtm_attributes"></a>
	<p></p>
	<h4>$habtm_attributes = <span class="value">&nbsp;null</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a167">167</a>]</p>
  <br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this variable</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$has_and_belongs_to_many"></a>
	<p></p>
	<h4>$has_and_belongs_to_many = <span class="value">&nbsp;null</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a155">155</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/ActiveRecord.html#methodget_association_type">ActiveRecord::get_association_type()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodset_habtm_attributes">ActiveRecord::set_habtm_attributes()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__call">ActiveRecord::__call()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__get">ActiveRecord::__get()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this variable</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$has_many"></a>
	<p></p>
	<h4>$has_many = <span class="value">&nbsp;null</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a143">143</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/ActiveRecord.html#methodget_association_type">ActiveRecord::get_association_type()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__call">ActiveRecord::__call()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__get">ActiveRecord::__get()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this variable</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$has_one"></a>
	<p></p>
	<h4>$has_one = <span class="value">&nbsp;null</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a149">149</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/ActiveRecord.html#methodget_association_type">ActiveRecord::get_association_type()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__call">ActiveRecord::__call()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__get">ActiveRecord::__get()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this variable</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$index_on"></a>
	<p></p>
	<h4>$index_on = <span class="value">&nbsp;&quot;id&quot;</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a136">136</a>]</p>
  <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>mixed</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$new_record"></a>
	<p></p>
	<h4>$new_record = <span class="value">&nbsp;true</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a189">189</a>]</p>
  Whether this object represents a new record<br /><br /><p>true =&gt; This object was created without reading a row from the           database, so use SQL 'INSERT' to put it in the database.   false =&gt; This object was a row read from the database, so use            SQL 'UPDATE' to update database with new values.</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/ActiveRecord.html#methodcheck_datetime">ActiveRecord::check_datetime()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodvalid">ActiveRecord::valid()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methoddelete_all">ActiveRecord::delete_all()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodadd_record_or_update_record">ActiveRecord::add_record_or_update_record()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodis_new_record">ActiveRecord::is_new_record()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind_all">ActiveRecord::find_all()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>boolean</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$preserve_null_dates"></a>
	<p></p>
	<h4>$preserve_null_dates = <span class="value">&nbsp;true</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a240">240</a>]</p>
  Whether to keep date/datetime fields NULL if not set<br /><br /><p>true =&gt; If date field is not set it try to preserve NULL   false =&gt; Don't try to preserve NULL if field is already NULL</p><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>protected</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>boolean</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$primary_keys"></a>
	<p></p>
	<h4>$primary_keys = <span class="value">array(&quot;id&quot;)</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a267">267</a>]</p>
  Primary key of the associated table<br /><br /><p>Array element(s) name the primary key column(s), as used to   specify the row to be updated or deleted.  To be a primary key   a column must be listed both here and in <a href="../PHPonTrax/ActiveRecord.html#var$content_columns">$content_columns</a>.  <strong>NOTE:</strong>This   field is maintained by hand.  It is not derived from the table   description read from the database.</p><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>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodget_primary_key_conditions">ActiveRecord::get_primary_key_conditions()</a></td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind_first">ActiveRecord::find_first()</a></td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind_all">ActiveRecord::find_all()</a></td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind">ActiveRecord::find()</a></td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$content_columns">ActiveRecord::$content_columns</a></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$rows_per_page_default"></a>
	<p></p>
	<h4>$rows_per_page_default = <span class="value">&nbsp;20</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a273">273</a>]</p>
  Default for how many rows to return from find_all()<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/ActiveRecord.html#methodfind_all">ActiveRecord::find_all()</a></td>
  </tr>
  <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>integer</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$save_associations"></a>
	<p></p>
	<h4>$save_associations = <span class="value">array()</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a172">172</a>]</p>
  <br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this property</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>mixed</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$table_name"></a>
	<p></p>
	<h4>$table_name = <span class="value">&nbsp;null</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a109">109</a>]</p>
  Table name<br /><br /><p>Name of the table in the database associated with the subclass.   Normally set to the pluralized lower case underscore form of   the class name by the constructor.  May be overridden.</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/ActiveRecord.html#methodadd_record">ActiveRecord::add_record()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__construct">ActiveRecord::__construct()</a></td>
  </tr>
  <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$time_format"></a>
	<p></p>
	<h4>$time_format = <span class="value">&nbsp;&quot;H:i:s&quot;</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a231">231</a>]</p>
  Time format for use with auto timestamping<br /><br /><p>The format for this should be compatiable with the php date() function.   http://www.php.net/date</p><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>protected</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$use_transactions"></a>
	<p></p>
	<h4>$use_transactions = <span class="value">&nbsp;false</span></h4>
	<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a325">325</a>]</p>
  <strong>FIXME: static should be after public</strong><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>
  <tr>
    <td><b>static:</b>&nbsp;&nbsp;</td><td></td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</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="method__construct"></a>
	<h3>constructor __construct <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a343">343</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>ActiveRecord __construct(
[string[]
$attributes = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Construct an ActiveRecord object<br /><br /><p><ol><li>Establish a connection to the database</li><li>Find the name of the table associated with this object</li><li>Read description of this table from the database</li><li>Optionally apply update information to column attributes</li></ol></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/ActiveRecord.html#methodupdate_attributes">ActiveRecord::update_attributes()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodset_table_name_using_class_name">ActiveRecord::set_table_name_using_class_name()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$table_name">ActiveRecord::$table_name</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodset_content_columns">ActiveRecord::set_content_columns()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodestablish_connection">ActiveRecord::establish_connection()</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>$attributes</b>&nbsp;&nbsp;</td>
        <td>Updates to column attributes</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodadd_error"></a>
	<h3>method add_error <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2071">2071</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 add_error(
string
$error, [string
$key = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Add or overwrite description of an error to the list of errors<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/ActiveRecord.html#var$errors">ActiveRecord::$errors</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>$error</b>&nbsp;&nbsp;</td>
        <td>Error message text</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$key</b>&nbsp;&nbsp;</td>
        <td>Key to associate with the error (in the     simple case, column name).  If omitted, numeric keys will be     assigned starting with 0.  If specified and the key already     exists in $errors, the old error message will be overwritten     with the value of $error.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodadd_habtm_records"></a>
	<h3>method add_habtm_records <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1614">1614</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 add_habtm_records(
mixed
$this_foreign_value)</code>
    </td></tr></table>
    </td></tr></table><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>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodadd_record">ActiveRecord::add_record()</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
  <tr>
    <td><b>throws:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodquery">ActiveRecord::query()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodis_error">ActiveRecord::is_error()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodadd_record"></a>
	<h3>method add_record <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1341">1341</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>boolean add_record(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Insert a new row in the table associated with this object<br /><br /><p>Build an SQL INSERT statement getting the table name from   <a href="../PHPonTrax/ActiveRecord.html#var$table_name">$table_name</a>, the column names from <a href="../PHPonTrax/ActiveRecord.html#var$content_columns">$content_columns</a> and the values from object variables.   Send the insert to the RDBMS.   FIXME: Shouldn't we be saving the insert ID value as an object   variable $this-&gt;id?</p><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><ul><li>true =&gt; row was inserted successfully</li><li>false =&gt; insert failed</li></ul></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$table_name">ActiveRecord::$table_name</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodraise">ActiveRecord::raise()</a></td>
  </tr>
  <tr>
    <td><b>throws:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodadd_record_or_update_record">ActiveRecord::add_record_or_update_record()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodquoted_attributes">ActiveRecord::quoted_attributes()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodquery">ActiveRecord::query()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodadd_habtm_records">ActiveRecord::add_habtm_records()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodbefore_create">ActiveRecord::before_create()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodget_insert_id">ActiveRecord::get_insert_id()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodis_error">ActiveRecord::is_error()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$auto_save_habtm">ActiveRecord::$auto_save_habtm</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodadd_record_or_update_record"></a>
	<h3>method add_record_or_update_record <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1300">1300</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>boolean add_record_or_update_record(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Create or update a row in the table<br /><br /><p>If this object represents a new row in the table, insert it.   Otherwise, update the exiting row.  before_?() and after_?()   routines will be called depending on whether the row is new.</p><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><ul><li>true =&gt; row was updated or inserted successfully</li><li>false =&gt; insert failed</li></ul></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodupdate_record">ActiveRecord::update_record()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodsave">ActiveRecord::save()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$new_record">ActiveRecord::$new_record</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodbefore_save">ActiveRecord::before_save()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodafter_create">ActiveRecord::after_create()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodafter_update">ActiveRecord::after_update()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodbefore_create">ActiveRecord::before_create()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodadd_record">ActiveRecord::add_record()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodafter_create"></a>
	<h3>method after_create <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2294">2294</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 after_create(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Is called after save() on new objects that havent been saved yet (no record exists).<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/ActiveRecord.html#methodadd_record_or_update_record">ActiveRecord::add_record_or_update_record()</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodafter_delete"></a>
	<h3>method after_delete <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2318">2318</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 after_delete(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Is called after delete().<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>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodafter_save"></a>
	<h3>method after_save <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2282">2282</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 after_save(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Is called after save (regardless of whether its a create or update save).<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>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodafter_update"></a>
	<h3>method after_update <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2306">2306</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 after_update(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Is called after save() on existing objects that has a record.<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/ActiveRecord.html#methodadd_record_or_update_record">ActiveRecord::add_record_or_update_record()</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodafter_validation"></a>
	<h3>method after_validation <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2246">2246</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 after_validation(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Is called after validate().<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>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodafter_validation_on_create"></a>
	<h3>method after_validation_on_create <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2258">2258</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 after_validation_on_create(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Is called after validate() on new objects that haven't been saved yet (no record exists).<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>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodafter_validation_on_update"></a>
	<h3>method after_validation_on_update <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2270">2270</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 after_validation_on_update(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Is called after validate() on existing objects that has a record.<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>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodaggregrate_all"></a>
	<h3>method aggregrate_all <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a720">720</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 aggregrate_all(
mixed
$aggregrate_type, [string[]
$parameters = null], string
$agrregrate_type)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Implement *_all() functions (SQL aggregate functions)<br /><br /><p>Apply one of the SQL aggregate functions to a column of the   table associated with this object.  The SQL aggregate   functions are AVG, COUNT, MAX, MIN and SUM.  Not all DBMS's   implement all of these functions.</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/ActiveRecord.html#method__call">ActiveRecord::__call()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodis_error">ActiveRecord::is_error()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodquery">ActiveRecord::query()</a></td>
  </tr>
  <tr>
    <td><b>throws:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</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>$agrregrate_type</b>&nbsp;&nbsp;</td>
        <td>SQL aggregate function to     apply, suffixed '_all'.  The aggregate function is one of   the strings in <a href="../PHPonTrax/ActiveRecord.html#var$aggregrations">$aggregrations</a>.</td>
      </tr>
          <tr>
        <td class="type">string[]&nbsp;&nbsp;</td>
        <td><b>$parameters</b>&nbsp;&nbsp;</td>
        <td>Conditions to apply to the     aggregate function.  If present, must be an array of three     strings:<ol><li>$parameters[0]: If present, expression to apply
       the aggregate function to.  Otherwise, '*' will be used.
       <strong>NOTE:</strong>SQL uses '*' only for the COUNT() function,
       where it means &quot;including rows with NULL in this column&quot;.</li><li>$parameters[1]: argument to WHERE clause</li><li>$parameters[2]: joins??? @todo Document this parameter</li></ol></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodbefore_create"></a>
	<h3>method before_create <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2288">2288</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 before_create(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Is called before save() on new objects that havent been saved yet (no record exists).<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/ActiveRecord.html#methodadd_record">ActiveRecord::add_record()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodadd_record_or_update_record">ActiveRecord::add_record_or_update_record()</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodbefore_delete"></a>
	<h3>method before_delete <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2312">2312</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 before_delete(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Is called before delete().<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>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodbefore_save"></a>
	<h3>method before_save <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2276">2276</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 before_save(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Is called before save() (regardless of whether its a create or update save)<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/ActiveRecord.html#methodadd_record_or_update_record">ActiveRecord::add_record_or_update_record()</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodbefore_update"></a>
	<h3>method before_update <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2300">2300</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 before_update(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Is called before save() on existing objects that has a record.<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>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodbefore_validation"></a>
	<h3>method before_validation <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2240">2240</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 before_validation(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Is called before validate().<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>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodbefore_validation_on_create"></a>
	<h3>method before_validation_on_create <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2252">2252</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 before_validation_on_create(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Is called before validate() on new objects that haven't been saved yet (no record exists).<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>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodbefore_validation_on_update"></a>
	<h3>method before_validation_on_update <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2264">2264</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 before_validation_on_update(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Is called before validate() on existing objects that has a record.<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>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodbegin"></a>
	<h3>method begin <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a820">820</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 begin(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Only used if you want to do transactions and your db supports transactions<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>Document this API</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$db">ActiveRecord::$db</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcheck_datetime"></a>
	<h3>method check_datetime <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1692">1692</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>mixed check_datetime(
string
$field, mixed
$value)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Apply automatic timestamp updates<br /><br /><p>If automatic timestamps are in effect (as indicated by   <a href="../PHPonTrax/ActiveRecord.html#var$auto_timestamps">$auto_timestamps</a> == true) and the column named in the   $field argument is of type &quot;timestamp&quot; and matches one of the   names in <a href="../PHPonTrax/ActiveRecord.html#var$auto_create_timestamps">auto_create_timestamps</a> or <a href="../PHPonTrax/ActiveRecord.html#var$auto_update_timestamps">auto_update_timestamps</a>(as selected by <a href="../PHPonTrax/ActiveRecord.html#var$new_record">$new_record</a>),   then return the current date and  time as a string formatted   to insert in the database.  Otherwise return $value.</p><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>Current date and time or $value</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$auto_update_timestamps">ActiveRecord::$auto_update_timestamps</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$auto_create_timestamps">ActiveRecord::$auto_create_timestamps</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$auto_timestamps">ActiveRecord::$auto_timestamps</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$content_columns">ActiveRecord::$content_columns</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$new_record">ActiveRecord::$new_record</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>$field</b>&nbsp;&nbsp;</td>
        <td>Name of a column in the table</td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$value</b>&nbsp;&nbsp;</td>
        <td>Value to return if $field is not an                       automatic timestamp column</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcolumn_attribute_exists"></a>
	<h3>method column_attribute_exists <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.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>boolean column_attribute_exists(
string
$attribute)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Check whether a column exists in the associated table<br /><br /><p>When called, <a href="../PHPonTrax/ActiveRecord.html#var$content_columns">$content_columns</a> lists the columns in   the table described by this object.</p><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>true=&gt;the column exists; false=&gt;it doesn't</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodsend">ActiveRecord::send()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$content_columns">ActiveRecord::$content_columns</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>$attribute</b>&nbsp;&nbsp;</td>
        <td>Name of the column</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcolumn_for_attribute"></a>
	<h3>method column_for_attribute <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a758">758</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 column_for_attribute(
mixed
$attribute)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		get the attributes for a specific column.<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/ActiveRecordHelper.html#methodcolumn_type">ActiveRecordHelper::column_type()</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$content_columns">ActiveRecord::$content_columns</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcommit"></a>
	<h3>method commit <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a831">831</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 commit(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Only used if you want to do transactions and your db supports transactions<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>Document this API</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$db">ActiveRecord::$db</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcreate"></a>
	<h3>method create <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1194">1194</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(
mixed
$attributes, [mixed
$dont_validate = false])</code>
    </td></tr></table>
    </td></tr></table><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>Document this API.  What's going on here?  It appears to         either create a row with all empty values, or it tries         to recurse once for each attribute in $attributes.   FIXME: resolve calling sequence   Creates an object, instantly saves it as a record (if the validation permits it).   If the save fails under validations it returns false and $errors array gets set.</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methoddelete"></a>
	<h3>method delete <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1512">1512</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 delete(
[mixed
$id = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Deletes the record with the given $id or if you have done a   $model = $model-&gt;find($id), then $model-&gt;delete() it will delete   the record it just loaded from the find() without passing anything   to delete(). If an array of ids is provided, all ids in array are deleted.<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>Document this API</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$errors">ActiveRecord::$errors</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methoddelete_all"></a>
	<h3>method delete_all <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1558">1558</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>boolean delete_all(
[string
$conditions = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Delete from table all rows that match argument<br /><br /><p>Delete the row(s), if any, matching the argument.</p><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><ul><li>true =&gt; One or more rows were deleted</li><li>false =&gt; $conditions was omitted</li></ul></td>
  </tr>
  <tr>
    <td><b>throws:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodquery">ActiveRecord::query()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$errors">ActiveRecord::$errors</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$new_record">ActiveRecord::$new_record</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodis_error">ActiveRecord::is_error()</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>$conditions</b>&nbsp;&nbsp;</td>
        <td>SQL argument to &quot;WHERE&quot; describing                 the rows to delete</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methoddelete_all_habtm_records"></a>
	<h3>method delete_all_habtm_records <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1659">1659</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 delete_all_habtm_records(
mixed
$other_table_name, mixed
$this_foreign_value)</code>
    </td></tr></table>
    </td></tr></table><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 /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methoddelete_habtm_records"></a>
	<h3>method delete_habtm_records <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1649">1649</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 delete_habtm_records(
mixed
$this_foreign_value)</code>
    </td></tr></table>
    </td></tr></table><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>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
  <tr>
    <td><b>throws:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodquery">ActiveRecord::query()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodis_error">ActiveRecord::is_error()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodestablish_connection"></a>
	<h3>method establish_connection <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2006">2006</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 establish_connection(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Open a database connection if one is not currently open<br /><br /><p>The name of the database normally comes from   $GLOBALS['TRAX_DB_SETTINGS'] which is set in <a href="../PHPonTrax/_data_config_environment_php.html">environment.php</a> by reading file config/database.ini. The   database name may be overridden by assigning a different name   to <a href="../PHPonTrax/ActiveRecord.html#var$database_name">$database_name</a>.</p><p>If there is a connection now open, as indicated by the saved   value of a DB object in $GLOBALS['ACTIVE_RECORD_DB'], and   <a href="../PHPonTrax/ActiveRecord.html#var$force_reconnect">force_reconnect</a> is not true, then set the database   fetch mode and return.</p><p>If there is no connection, open one and save a reference to   it in $GLOBALS['ACTIVE_RECORD_DB'].</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>throws:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__construct">ActiveRecord::__construct()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodis_error">ActiveRecord::is_error()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$force_reconnect">ActiveRecord::$force_reconnect</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$database_name">ActiveRecord::$database_name</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$db">ActiveRecord::$db</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodfind"></a>
	<h3>method find <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1104">1104</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>mixed find(
mixed[]
$id, [string
$orderings = null], [integer[]
$limit = null], [string
$joins = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Find row(s) with specified value(s)<br /><br /><p>Find all the rows in the table which match the argument $id.   Return zero or more objects of the same class as this   class representing the rows that matched the argument.</p><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><p>Results of query.  If $id was a scalar then the     result is an object of the same class as this class and     matching $id conditions, or if no row matched the result is     null.</p><p>If $id was an array then the result is an array containing     objects of the same class as this class and matching the     conditions set by $id.  If no rows matched, the array is     empty.</p></td>
  </tr>
  <tr>
    <td><b>throws:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind_first">ActiveRecord::find_first()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind_all">ActiveRecord::find_all()</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document the $limit and $joins parameters</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">mixed[]&nbsp;&nbsp;</td>
        <td><b>$id</b>&nbsp;&nbsp;</td>
        <td>If $id is an array then a query will be     generated selecting all of the array values in column &quot;id&quot;.     If $id is a string containing &quot;=&quot; then the string value of     $id will be inserted in a WHERE clause in the query.  If $id     is a scalar not containing &quot;=&quot; then a query will be generated     selecting the first row WHERE id = '$id'.     <strong>NOTE</strong> The column name &quot;id&quot; is used regardless of the     value of <a href="../PHPonTrax/ActiveRecord.html#var$primary_keys">$primary_keys</a>.  Therefore if you need to     select based on some column other than &quot;id&quot;, you must pass a     string argument ready to insert in the SQL SELECT.</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$orderings</b>&nbsp;&nbsp;</td>
        <td>Argument to &quot;ORDER BY&quot; in query.     If specified, the query will include &quot;ORDER BY     $orderings&quot;. If omitted, no ordering will be applied.</td>
      </tr>
          <tr>
        <td class="type">integer[]&nbsp;&nbsp;</td>
        <td><b>$limit</b>&nbsp;&nbsp;</td>
        <td>Page, rows per page???</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$joins</b>&nbsp;&nbsp;</td>
        <td>???</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodfind_all"></a>
	<h3>method find_all <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a961">961</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>object[] find_all(
[string
$conditions = null], [string
$orderings = null], [integer[]
$limit = null], [string
$joins = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Return rows selected by $conditions<br /><br /><p>If no rows match, an empty array is returned.</p><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>Array of objects of the same class as this     object, one object for each row returned by the query.     If the column 'id' was in the results, it is used as the key     for that object in the array.</td>
  </tr>
  <tr>
    <td><b>throws:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodquery">ActiveRecord::query()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind_by">ActiveRecord::find_by()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind">ActiveRecord::find()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind_first">ActiveRecord::find_first()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$new_record">ActiveRecord::$new_record</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodis_error">ActiveRecord::is_error()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$rows_per_page_default">ActiveRecord::$rows_per_page_default</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>$rows_per_page</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>$offset</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>$page</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document the $limit and $joins parameters</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>$conditions</b>&nbsp;&nbsp;</td>
        <td>SQL to use in the query.  If     $conditions contains &quot;SELECT&quot;, then $orderings, $limit and     $joins are ignored and the query is completely specified by     $conditions.  If $conditions is omitted or does not contain     &quot;SELECT&quot;, &quot;SELECT * FROM&quot; will be used.  If $conditions is     specified and does not contain &quot;SELECT&quot;, the query will     include &quot;WHERE $conditions&quot;.  If $conditions is null, the     entire table is returned.</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$orderings</b>&nbsp;&nbsp;</td>
        <td>Argument to &quot;ORDER BY&quot; in query.     If specified, the query will include     &quot;ORDER BY $orderings&quot;. If omitted, no ordering will be     applied.</td>
      </tr>
          <tr>
        <td class="type">integer[]&nbsp;&nbsp;</td>
        <td><b>$limit</b>&nbsp;&nbsp;</td>
        <td>Page, rows per page???</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$joins</b>&nbsp;&nbsp;</td>
        <td>???</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodfind_all_habtm"></a>
	<h3>method find_all_habtm <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a529">529</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 find_all_habtm(
mixed
$other_table_name, [mixed
$parameters = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Find all records using a &quot;has_and_belongs_to_many&quot; relationship<br /><br /><p>(many-to-many with a join table in between).  Note that you can also   specify an optional &quot;paging limit&quot; by setting the corresponding &quot;limit&quot;   instance variable.  For example, if you want to return 10 movies from the   5th movie on, you could set $this-&gt;movies_limit = &quot;10, 5&quot;</p><p>Parameters: $this_table_name:  The name of the database table that has the                                  one row you are interested in.  E.g. genres               $other_table_name: The name of the database table that has the                                  many rows you are interested in.  E.g. movies   Returns: An array of ActiveRecord objects. (e.g. Movie objects)</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/ActiveRecord.html#method__get">ActiveRecord::__get()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodfind_all_has_many"></a>
	<h3>method find_all_has_many <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a584">584</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 find_all_has_many(
mixed
$other_table_name, [mixed
$parameters = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Find all records using a &quot;has_many&quot; relationship (one-to-many)<br /><br /><p>Parameters: $other_table_name: The name of the other table that contains                                  many rows relating to this object's id.   Returns: An array of ActiveRecord objects. (e.g. Contact objects)</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/ActiveRecord.html#method__get">ActiveRecord::__get()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodfind_by"></a>
	<h3>method find_by <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a889">889</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 find_by(
mixed
$method_name, mixed
$parameters, [mixed
$find_all = false])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Implement find_by_*() and find_all_by_* methods<br /><br /><p>Converts a method name beginning 'find_by_' or 'find_all_by_'   into a query for rows matching the rest of the method name and   the arguments to the function.  The part of the method name   after '_by' is parsed for columns and logical relationships   (AND and OR) to match.  For example, the call     find_by_fname('Ben')   is converted to     SELECT * ... WHERE fname='Ben'   and the call     find_by_fname_and_lname('Ben','Dover')   is converted to     SELECT * ... WHERE fname='Ben' AND lname='Dover'</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/ActiveRecord.html#method__call">ActiveRecord::__call()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind_first">ActiveRecord::find_first()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind_all">ActiveRecord::find_all()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodfind_by_sql"></a>
	<h3>method find_by_sql <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1156">1156</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 find_by_sql(
string
$sql)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Return all the rows selected by the SQL argument<br /><br /><p>If no rows match, an empty array is returned.</p><br /><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>$sql</b>&nbsp;&nbsp;</td>
        <td>SQL to use in the query.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodfind_first"></a>
	<h3>method find_first <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1145">1145</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>mixed find_first(
string
$conditions, [string
$orderings = null], [integer[]
$limit = null], [string
$joins = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Return first row selected by $conditions<br /><br /><p>If no rows match, null is returned.</p><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>An object of the same class as this class and     matching $conditions, or null if none did.</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind">ActiveRecord::find()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind_by">ActiveRecord::find_by()</a></td>
  </tr>
  <tr>
    <td><b>throws:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind_all">ActiveRecord::find_all()</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>$conditions</b>&nbsp;&nbsp;</td>
        <td>SQL to use in the query.  If     $conditions contains &quot;SELECT&quot;, then $orderings, $limit and     $joins are ignored and the query is completely specified by     $conditions.  If $conditions is omitted or does not contain     &quot;SELECT&quot;, &quot;SELECT * FROM&quot; will be used.  If $conditions is     specified and does not contain &quot;SELECT&quot;, the query will     include &quot;WHERE $conditions&quot;.  If $conditions is null, the     entire table is returned.</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$orderings</b>&nbsp;&nbsp;</td>
        <td>Argument to &quot;ORDER BY&quot; in query.     If specified, the query will include     &quot;ORDER BY $orderings&quot;. If omitted, no ordering will be     applied.   FIXME This parameter doesn't seem to make sense</td>
      </tr>
          <tr>
        <td class="type">integer[]&nbsp;&nbsp;</td>
        <td><b>$limit</b>&nbsp;&nbsp;</td>
        <td>Page, rows per page??? @todo Document this parameter   FIXME This parameter doesn't seem to make sense</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$joins</b>&nbsp;&nbsp;</td>
        <td>??? @todo Document this parameter</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodfind_one_belongs_to"></a>
	<h3>method find_one_belongs_to <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a673">673</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 find_one_belongs_to(
mixed
$other_object_name, [mixed
$parameters = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Find all records using a &quot;belongs_to&quot; relationship (one-to-one)   (the foreign key being in the table itself)   Parameters: $other_object_name: The singularized version of a table name.<br /><br /><p>E.g. If the Contact class belongs_to the                                   Customer class, then $other_object_name                                   will be &quot;customer&quot;.</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/ActiveRecord.html#method__get">ActiveRecord::__get()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodfind_one_has_one"></a>
	<h3>method find_one_has_one <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a641">641</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 find_one_has_one(
mixed
$other_object_name, [mixed
$parameters = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Find all records using a &quot;has_one&quot; relationship (one-to-one)   (the foreign key being in the other table)   Parameters: $other_table_name: The name of the other table that contains                                  many rows relating to this object's id.<br /><br /><p>Returns: An array of ActiveRecord objects. (e.g. Contact objects)</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/ActiveRecord.html#method__get">ActiveRecord::__get()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodget_association_type"></a>
	<h3>method get_association_type <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1421">1421</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>mixed get_association_type(
mixed
$association_name)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		returns the association type if defined in child class or null<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>Association type, one of the following:   <ul><li>&quot;belongs_to&quot;</li><li>&quot;has_and_belongs_to_many&quot;</li><li>&quot;has_many&quot;</li><li>&quot;has_one&quot;</li></ul>   if an association exists, or null if no association</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__get">ActiveRecord::__get()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__set">ActiveRecord::__set()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__call">ActiveRecord::__call()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$has_one">ActiveRecord::$has_one</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$has_many">ActiveRecord::$has_many</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$belongs_to">ActiveRecord::$belongs_to</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$has_and_belongs_to_many">ActiveRecord::$has_and_belongs_to_many</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td><strong>FIXME:</strong> does the match algorithm match a substring         of what we want to match?</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodget_attributes"></a>
	<h3>method get_attributes <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1817">1817</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 get_attributes(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Return pairs of column-name:column-value<br /><br /><p>Return the contents of the object as an array of elements   where the key is the column name and the value is the column   value.  Relies on a previous call to   <a href="../PHPonTrax/ActiveRecord.html#methodset_content_columns">set_content_columns()</a> for information about the format   of a row in the table.</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/ActiveRecord.html#methodvalidate_model_attributes">ActiveRecord::validate_model_attributes()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodquoted_attributes">ActiveRecord::quoted_attributes()</a></td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodquoted_attributes">ActiveRecord::quoted_attributes()</a></td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodset_content_columns">ActiveRecord::set_content_columns()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$content_columns">ActiveRecord::$content_columns</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodget_errors"></a>
	<h3>method get_errors <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2093">2093</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>mixed get_errors(
[mixed
$return_string = false], [string
$seperator = "<br>"], boolean
$return_string
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Return description of non-fatal errors<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>Error description(s), if any</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$errors">ActiveRecord::$errors</a></td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">boolean&nbsp;&nbsp;</td>
        <td><b>$return_string
</b>&nbsp;&nbsp;</td>
        <td><ul><li>true =&gt; Concatenate all error descriptions into a string
        using $seperator between elements and return the
        string</li><li>false =&gt; Return the error descriptions as an array</li></ul></td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$seperator</b>&nbsp;&nbsp;</td>
        <td>String to concatenate between error     descriptions if $return_string == true</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodget_errors_as_string"></a>
	<h3>method get_errors_as_string <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2110">2110</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 get_errors_as_string(
[string
$seperator = "<br>"])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Return errors as a string.<br /><br /><p>Concatenate all error descriptions into a stringusing   $seperator between elements and return the string.</p><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>Concatenated error description(s), if any</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>$seperator</b>&nbsp;&nbsp;</td>
        <td>String to concatenate between error     descriptions</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodget_insert_id"></a>
	<h3>method get_insert_id <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1975">1975</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 get_insert_id(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns the autogenerated id from the last insert query<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/ActiveRecord.html#methodadd_record">ActiveRecord::add_record()</a></td>
  </tr>
  <tr>
    <td><b>throws:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodraise">ActiveRecord::raise()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodis_error">ActiveRecord::is_error()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$db">ActiveRecord::$db</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodget_join_table_name"></a>
	<h3>method get_join_table_name <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a507">507</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 get_join_table_name(
mixed
$first_table, mixed
$second_table)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns a the name of the join table that would be used for the two   tables.  The join table name is decided from the alphabetical order   of the two tables.  e.g. &quot;genres_movies&quot; because &quot;g&quot; comes before &quot;m&quot;<br /><br /><p>Parameters: $first_table, $second_table: the names of two database tables,    e.g. &quot;movies&quot; and &quot;genres&quot;</p><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>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodget_primary_key_conditions"></a>
	<h3>method get_primary_key_conditions <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1883">1883</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 get_primary_key_conditions(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Return argument for a &quot;WHERE&quot; clause specifying this row<br /><br /><p>Returns a string which specifies the column(s) and value(s)   which describe the primary key of this row of the associated   table.  The primary key must be one or more attributes of the   object and must be listed in <a href="../PHPonTrax/ActiveRecord.html#var$content_columns">$content_columns</a> as   columns in the row.</p><p>Example: if $primary_keys = array(&quot;id&quot;, &quot;ssn&quot;) and column &quot;id&quot;   has value &quot;5&quot; and column &quot;ssn&quot; has value &quot;123-45-6789&quot; then   the string &quot;id = '5' AND ssn = '123-45-6789'&quot; would be returned.</p><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>Column name = 'value' [ AND name = 'value']...</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodupdate_record">ActiveRecord::update_record()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodreload">ActiveRecord::reload()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodquoted_attributes">ActiveRecord::quoted_attributes()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$primary_keys">ActiveRecord::$primary_keys</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodget_updates_sql"></a>
	<h3>method get_updates_sql <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1913">1913</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 get_updates_sql(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Return column values of object formatted for SQL update statement<br /><br /><p>Return a string containing the column names and values of this   object in a format ready to be inserted in a SQL UPDATE   statement.  Automatic update has been applied to timestamps if   enabled and characters special to SQL have been quoted.</p><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>Column name = 'value', ... for all attributes</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodupdate_record">ActiveRecord::update_record()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodquoted_attributes">ActiveRecord::quoted_attributes()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodis_error"></a>
	<h3>method is_error <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2042">2042</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>boolean is_error(
object
$obj)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Test whether argument is a PEAR Error object or a DB Error object.<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>Whether object is one of these two errors</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodadd_habtm_records">ActiveRecord::add_habtm_records()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methoddelete_all">ActiveRecord::delete_all()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methoddelete_habtm_records">ActiveRecord::delete_habtm_records()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodget_insert_id">ActiveRecord::get_insert_id()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodestablish_connection">ActiveRecord::establish_connection()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodupdate_record">ActiveRecord::update_record()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodadd_record">ActiveRecord::add_record()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodsend">ActiveRecord::send()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodquery">ActiveRecord::query()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind_all">ActiveRecord::find_all()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodupdate_all">ActiveRecord::update_all()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodaggregrate_all">ActiveRecord::aggregrate_all()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">object&nbsp;&nbsp;</td>
        <td><b>$obj</b>&nbsp;&nbsp;</td>
        <td>Object to test</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodis_new_record"></a>
	<h3>method is_new_record <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.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>boolean is_new_record(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Test whether this object represents a new record<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>Whether this object represents a new record</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$new_record">ActiveRecord::$new_record</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodlimit_select"></a>
	<h3>method limit_select <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2336">2336</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 limit_select(
[mixed
$controller = null], [mixed
$additional_query = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Paging html functions<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>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodload"></a>
	<h3>method load <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1182">1182</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 load(
[mixed
$conditions = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Loads into current object values from the database.<br /><br /><br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodlog_query"></a>
	<h3>method log_query <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2326">2326</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 log_query(
string
$sql)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Log SQL query in development mode<br /><br /><p>If running in development mode, log the query to $GLOBAL</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/ActiveRecord.html#methodquery">ActiveRecord::query()</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>$sql</b>&nbsp;&nbsp;</td>
        <td>SQL to be logged</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodpage_list"></a>
	<h3>method page_list <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2362">2362</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 page_list(
)</code>
    </td></tr></table>
    </td></tr></table><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>HTML to link to previous and next pages</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>$paging_extra_params</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>rows_per_page</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>$pages</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>$page</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$display">ActiveRecord::$display</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodquery"></a>
	<h3>method query <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a857">857</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="../PHPonTraxTest/DB_result.html">DB_result</a> query(
string
$sql)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Perform an SQL query and return the results<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><a href="http://pear.php.net/manual/en/package.database.db.db-result.php">http://pear.php.net/manual/en/package.database.db.db-result.php</a>     Result set from query</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodupdate_record">ActiveRecord::update_record()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodadd_record">ActiveRecord::add_record()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methoddelete_all">ActiveRecord::delete_all()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodadd_habtm_records">ActiveRecord::add_habtm_records()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methoddelete_habtm_records">ActiveRecord::delete_habtm_records()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodupdate_all">ActiveRecord::update_all()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind_all">ActiveRecord::find_all()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodis_error">ActiveRecord::is_error()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodlog_query">ActiveRecord::log_query()</a></td>
  </tr>
  <tr>
    <td><b>throws:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodaggregrate_all">ActiveRecord::aggregrate_all()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$db">ActiveRecord::$db</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>$sql</b>&nbsp;&nbsp;</td>
        <td>SQL for the query command</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodquoted_attributes"></a>
	<h3>method quoted_attributes <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1846">1846</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[] quoted_attributes(
[string[]
$attributes = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Return pairs of column-name:quoted-column-value<br /><br /><p>Return pairs of column-name:quoted-column-value where the key   is the column name and the value is the column value with   automatic timestamp updating applied and characters special to   SQL quoted.</p><p>If $attributes is null or omitted, return all columns as   currently stored in content_columns().  Otherwise,   return the name:value pairs in $attributes.</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/ActiveRecord.html#methodget_updates_sql">ActiveRecord::get_updates_sql()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodget_primary_key_conditions">ActiveRecord::get_primary_key_conditions()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodadd_record">ActiveRecord::add_record()</a></td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodset_content_columns">ActiveRecord::set_content_columns()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodget_attributes">ActiveRecord::get_attributes()</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>$attributes</b>&nbsp;&nbsp;</td>
        <td>Name:value pairs to return.     If null or omitted, return the column names and values     of the object as stored in $content_columns.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodraise"></a>
	<h3>method raise <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2055">2055</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 raise(
mixed
$message)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Throw an exception describing an error in this object<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/ActiveRecord.html#methodget_insert_id">ActiveRecord::get_insert_id()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodupdate_record">ActiveRecord::update_record()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodadd_record">ActiveRecord::add_record()</a></td>
  </tr>
  <tr>
    <td><b>throws:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodreload"></a>
	<h3>method reload <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1165">1165</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 reload(
[mixed
$conditions = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Reloads the attributes of this object from the database.<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>Document this API</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodget_primary_key_conditions">ActiveRecord::get_primary_key_conditions()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodrollback"></a>
	<h3>method rollback <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a842">842</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 rollback(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Only used if you want to do transactions and your db supports transactions<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>Document this API</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$db">ActiveRecord::$db</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsave"></a>
	<h3>method save <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1268">1268</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>boolean save(
[string[]
$attributes = null], [boolean
$dont_validate = false])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Create or update a row in the table with specified attributes<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><ul><li>true =&gt; row was updated or inserted successfully</li><li>false =&gt; insert failed</li></ul></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodvalid">ActiveRecord::valid()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodupdate_attributes">ActiveRecord::update_attributes()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodadd_record_or_update_record">ActiveRecord::add_record_or_update_record()</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>$attributes</b>&nbsp;&nbsp;</td>
        <td>List of name =&gt; value pairs giving     name and value of attributes to set.</td>
      </tr>
          <tr>
        <td class="type">boolean&nbsp;&nbsp;</td>
        <td><b>$dont_validate</b>&nbsp;&nbsp;</td>
        <td>true =&gt; Don't call validation     routines before saving the row.  If false or omitted, all     applicable validation routines are called.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsave_association"></a>
	<h3>method save_association <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1489">1489</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 save_association(
mixed
$object, mixed
$type)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		save the association to the database<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>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsave_associations"></a>
	<h3>method save_associations <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1467">1467</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 save_associations(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Saves any associations objects assigned to this instance<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>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$auto_save_associations">ActiveRecord::$auto_save_associations</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsave_without_validation"></a>
	<h3>method save_without_validation <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1247">1247</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 save_without_validation(
[mixed
$attributes = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Save without valdiating anything.<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>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsend"></a>
	<h3>method send <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a801">801</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 send(
string
$column)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Get contents of one column of record selected by id and table<br /><br /><p>When called, $id identifies one record in the table   identified by $table.  Fetch from the database the   contents of column $column of this record.</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/Helpers.html#methodvalue">Helpers::value()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/DateHelper.html#methodvalue">DateHelper::value()</a></td>
  </tr>
  <tr>
    <td><b>throws:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodis_error">ActiveRecord::is_error()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodcolumn_attribute_exists">ActiveRecord::column_attribute_exists()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$db">ActiveRecord::$db</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>$column</b>&nbsp;&nbsp;</td>
        <td>Name of column to retrieve</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodset_content_columns"></a>
	<h3>method set_content_columns <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1957">1957</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 set_content_columns(
string
$table_name)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Populate object with information about the table it represents<br /><br /><p>Call <a href="http://pear.php.net/manual/en/package.database.db.db-common.tableinfo.php">DB_common::tableInfo()</a> to get a description of the table and   store it in <a href="../PHPonTrax/ActiveRecord.html#var$content_columns">$content_columns</a>.  Add a more human   friendly name to the element for each column.   <strong>FIXME: should throw an exception if tableInfo() fails</strong></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/ActiveRecord.html#method__construct">ActiveRecord::__construct()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__set">ActiveRecord::__set()</a></td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__set">ActiveRecord::__set()</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/ActiveRecord.html#var$content_columns">ActiveRecord::$content_columns</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$db">ActiveRecord::$db</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>$table_name</b>&nbsp;&nbsp;</td>
        <td>Name of table to get information about</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodset_habtm_attributes"></a>
	<h3>method set_habtm_attributes <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1580">1580</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 set_habtm_attributes(
mixed
$attributes)</code>
    </td></tr></table>
    </td></tr></table><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>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$has_and_belongs_to_many">ActiveRecord::$has_and_belongs_to_many</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodset_table_name_using_class_name"></a>
	<h3>method set_table_name_using_class_name <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1936">1936</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 set_table_name_using_class_name(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Set $table_name from the class name of this object<br /><br /><p>By convention, the name of the database table represented by   this object is derived from the name of the class.</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/ActiveRecord.html#method__construct">ActiveRecord::__construct()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/Inflector.html#methodtableize">Inflector::tableize()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodupdate"></a>
	<h3>method update <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1211">1211</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 update(
mixed
$id, mixed
$attributes, [mixed
$dont_validate = false])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Finds the record from the passed id, instantly saves it with the passed attributes   (if the validation permits it). Returns true on success and false on error.<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>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodupdate_all"></a>
	<h3>method update_all <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1233">1233</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 update_all(
mixed
$updates, [mixed
$conditions = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Updates all records with the SET-part of an SQL update statement in updates and   returns an integer with the number of rows updates. A subset of the records can   be selected by specifying conditions.<br /><br /><p>Example:     $model-&gt;update_all(&quot;category = 'cooldude', approved = 1&quot;, &quot;author = 'John'&quot;);</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>Document this API</td>
  </tr>
  <tr>
    <td><b>throws:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodquery">ActiveRecord::query()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodis_error">ActiveRecord::is_error()</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodupdate_attributes"></a>
	<h3>method update_attributes <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1730">1730</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 update_attributes(
string[]
$attributes)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Update object attributes from list in argument<br /><br /><p>The elements of $attributes are parsed and assigned to   attributes of the ActiveRecord object.  Date/time fields are   treated according to the   <a href="../PHPonTrax/tutorial_naming.pkg.html">The Trax Naming Convention</a>.</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/ActiveRecord.html#methodsave">ActiveRecord::save()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#method__construct">ActiveRecord::__construct()</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Figure out and document how datetime fields work</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$auto_save_associations">ActiveRecord::$auto_save_associations</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>$attributes</b>&nbsp;&nbsp;</td>
        <td>List of name =&gt; value pairs giving     name and value of attributes to set.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodupdate_habtm_records"></a>
	<h3>method update_habtm_records <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1603">1603</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 update_habtm_records(
mixed
$this_foreign_value)</code>
    </td></tr></table>
    </td></tr></table><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/ActiveRecord.html#methodupdate_record">ActiveRecord::update_record()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodupdate_record"></a>
	<h3>method update_record <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a1383">1383</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>boolean update_record(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Update the row in the table described by this object<br /><br /><p>The primary key attributes must exist and have appropriate   non-null values.  If a column is listed in <a href="../PHPonTrax/ActiveRecord.html#var$content_columns">$content_columns</a> but no attribute of that name exists, the   column will be set to the null string ''.</p><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><ul><li>true =&gt; row was updated successfully</li><li>false =&gt; update failed</li></ul></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodupdate_habtm_records">ActiveRecord::update_habtm_records()</a></td>
  </tr>
  <tr>
    <td><b>throws:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodadd_record_or_update_record">ActiveRecord::add_record_or_update_record()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodraise">ActiveRecord::raise()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodquery">ActiveRecord::query()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodis_error">ActiveRecord::is_error()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodget_updates_sql">ActiveRecord::get_updates_sql()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodget_primary_key_conditions">ActiveRecord::get_primary_key_conditions()</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Describe habtm automatic update</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodvalid"></a>
	<h3>method valid <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2135">2135</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>boolean valid(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Runs validation routines for update or create<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><ul><li>true =&gt; Valid, no errors found.
        <a href="../PHPonTrax/ActiveRecord.html#var$errors">$errors</a> is empty</li><li>false =&gt; Not valid, errors in <a href="../PHPonTrax/ActiveRecord.html#var$errors">$errors</a></li></ul></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>validate();</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$new_record">ActiveRecord::$new_record</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>validate_model_attributes();</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>validate_on_create();</td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodsave">ActiveRecord::save()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$errors">ActiveRecord::$errors</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>before_validation_on_update();</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>after_validation_on_create();</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>after_validation_on_update();</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>before_validation();</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>before_validation_on_create();</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>after_validation();</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodvalidate"></a>
	<h3>method validate <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2222">2222</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 validate(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Overwrite this method for validation checks on all saves and<br /><br /><p>use $this-&gt;errors[] = &quot;My error message.&quot;; or   for invalid attributes $this-&gt;errors['attribute'] = &quot;Attribute is invalid.&quot;;</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>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodvalidate_model_attributes"></a>
	<h3>method validate_model_attributes <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2182">2182</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>boolean validate_model_attributes(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Call every method named &quot;validate_*()&quot; where * is a column name<br /><br /><p>Find and call every method named &quot;validate_something()&quot; where   &quot;something&quot; is the name of a column.  The &quot;validate_something()&quot;   functions are expected to return an array whose first element   is true or false (indicating whether or not the validation   succeeded), and whose second element is the error message to   display if the first element is false.</p><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><ul><li>true =&gt; Valid, no errors found.
        <a href="../PHPonTrax/ActiveRecord.html#var$errors">$errors</a> is empty</li><li>false =&gt; Not valid, errors in <a href="../PHPonTrax/ActiveRecord.html#var$errors">$errors</a>.
        $errors is an array whose keys are the names of columns,
        and the value of each key is the error message returned
        by the corresponding validate_*() method.</li></ul></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodget_attributes">ActiveRecord::get_attributes()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$errors">ActiveRecord::$errors</a></td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodvalidate_on_create"></a>
	<h3>method validate_on_create <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2228">2228</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 validate_on_create(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Override this method for validation checks used only on creation.<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>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodvalidate_on_update"></a>
	<h3>method validate_on_update <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a2234">2234</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 validate_on_update(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Override this method for validation checks used only on updates.<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>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method__call"></a>
	<h3>method __call <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a454">454</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 __call(
mixed
$method_name, mixed
$parameters)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Override call() to dynamically call the database associations<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/ActiveRecord.html#var$has_and_belongs_to_many">ActiveRecord::$has_and_belongs_to_many</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$has_many">ActiveRecord::$has_many</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td>find_all_by()</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind_by">ActiveRecord::find_by()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$has_one">ActiveRecord::$has_one</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$belongs_to">ActiveRecord::$belongs_to</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$aggregrations">ActiveRecord::$aggregrations</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodaggregrate_all">ActiveRecord::aggregrate_all()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodget_association_type">ActiveRecord::get_association_type()</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method__get"></a>
	<h3>method __get <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a377">377</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 __get(
mixed
$key)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Override get() if they do $model-&gt;some_association-&gt;field_name   dynamically load the requested contents from the database.<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/ActiveRecord.html#methodfind_all_has_many">ActiveRecord::find_all_has_many()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind_all_habtm">ActiveRecord::find_all_habtm()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind_one_belongs_to">ActiveRecord::find_one_belongs_to()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodfind_one_has_one">ActiveRecord::find_one_has_one()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$has_one">ActiveRecord::$has_one</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$has_many">ActiveRecord::$has_many</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$belongs_to">ActiveRecord::$belongs_to</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodget_association_type">ActiveRecord::get_association_type()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$has_and_belongs_to_many">ActiveRecord::$has_and_belongs_to_many</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this API</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method__set"></a>
	<h3>method __set <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxactive_record.php.html#a417">417</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 __set(
mixed
$key, mixed
$value)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Store column value or description of the table format<br /><br /><p>If called with key 'table_name', $value is stored as the   description of the table format in $content_columns.   Any other key causes an object variable with the same name to   be created and stored into.  If the value of $key matches the   name of a column in content_columns, the corresponding object   variable becomes the content of the column in this row.</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/ActiveRecord.html#methodset_content_columns">ActiveRecord::set_content_columns()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#methodget_association_type">ActiveRecord::get_association_type()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/ActiveRecord.html#var$auto_save_associations">ActiveRecord::$auto_save_associations</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:47:11 -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