Location: PHPKode > scripts > Table Data Management > table-data-management/TableDataManagement.html
<html>
<head>
<title>Docs For Class TableDataManagement</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">database</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_database.html" class="menu">class tree: database</a> ]
		  [ <a href="../elementindex_database.html" class="menu">index: database</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">
      <b>Packages:</b><br />
              <a href="../li_database.html">database</a><br />
            <br /><br />
                        <b>Files:</b><br />
      	  <div class="package">
			<a href="../database/_MySQLConnection_class_php.html">		MySQLConnection.class.php
		</a><br>
			<a href="../database/_TableColumn_class_php.html">		TableColumn.class.php
		</a><br>
			<a href="../database/_TableDataManagement_class_php.html">		TableDataManagement.class.php
		</a><br>
	  </div><br />
      
            <b>Classes:</b><br />
        <div class="package">
		    		<a href="../database/MySQLConnection.html">MySQLConnection</a><br />
	    		<a href="../database/TableColumn.html">TableColumn</a><br />
	    		<a href="../database/TableDataManagement.html">TableDataManagement</a><br />
	  </div>
                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1>Class: TableDataManagement</h1>
Source Location: /TableDataManagement.class.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">The TableDataManagement class is used as an interface to a database table.</div><br /><br />
<h4>Author(s):</h4>
<ul>
                <li>S.Radovanovic</li>
            </ul>




    
            
<h4>Version:</h4>
<ul>
  <li>1.0</li>
</ul>


</td>

<td valign="top">
<h3><a href="#class_vars">Variables</a></h3>
<ul>
    <li><a href="../database/TableDataManagement.html#var$_arrObjTableColumns">$_arrObjTableColumns</a></li>
    <li><a href="../database/TableDataManagement.html#var$_arrPRIColumns">$_arrPRIColumns</a></li>
    <li><a href="../database/TableDataManagement.html#var$_arrSaveColumns">$_arrSaveColumns</a></li>
    <li><a href="../database/TableDataManagement.html#var$_arrStateColumns">$_arrStateColumns</a></li>
    <li><a href="../database/TableDataManagement.html#var$_arrUpdateColumns">$_arrUpdateColumns</a></li>
    <li><a href="../database/TableDataManagement.html#var$_arrVirtualColumns">$_arrVirtualColumns</a></li>
    <li><a href="../database/TableDataManagement.html#var$_objDbConn">$_objDbConn</a></li>
    <li><a href="../database/TableDataManagement.html#var$_tablename">$_tablename</a></li>
  </ul>
</td>


<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
    <li><a href="../database/TableDataManagement.html#methodTableDataManagement">TableDataManagement</a></li>
    <li><a href="../database/TableDataManagement.html#methoddelete">delete</a></li>
    <li><a href="../database/TableDataManagement.html#methodget">get</a></li>
    <li><a href="../database/TableDataManagement.html#methodgetObject">getObject</a></li>
    <li><a href="../database/TableDataManagement.html#methodgetTableName">getTableName</a></li>
    <li><a href="../database/TableDataManagement.html#methodgetUpdateColumnArray">getUpdateColumnArray</a></li>
    <li><a href="../database/TableDataManagement.html#methodgetVirtual">getVirtual</a></li>
    <li><a href="../database/TableDataManagement.html#methodinit">init</a></li>
    <li><a href="../database/TableDataManagement.html#methodload">load</a></li>
    <li><a href="../database/TableDataManagement.html#methodsave">save</a></li>
    <li><a href="../database/TableDataManagement.html#methodset">set</a></li>
    <li><a href="../database/TableDataManagement.html#methodsetArray">setArray</a></li>
    <li><a href="../database/TableDataManagement.html#methodsetColumnLabel">setColumnLabel</a></li>
    <li><a href="../database/TableDataManagement.html#methodupdate">update</a></li>
    <li><a href="../database/TableDataManagement.html#method_getState">_getState</a></li>
    <li><a href="../database/TableDataManagement.html#method_reload">_reload</a></li>
    <li><a href="../database/TableDataManagement.html#method_rememberState">_rememberState</a></li>
    <li><a href="../database/TableDataManagement.html#method__constructor">__constructor</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 28]<br />
The TableDataManagement class is used as an interface to a database table.<br /><br /><p>The user of the object is given a tool with which direct ac</p><p><br /><em>How does it work?</em><br />  On initalization the object immediatly delivers itself knowledge about the table  it is interfacing.  After the initialization the object knows: <ul><li>what primary keys are defined</li><li>what the type of a column is (used in the select, save and update queries)</li></ul></p><p>After the object has been initialized the user can than either @see load() the object  with a specific record, or @see save() a new record into the table.</p><p><br /><em>Benefits</em><br /> <ul><li>select, update, save, delete records without having to write specific queries</li><li>keep code clean by passing all needed data trough to the TDM object and calling
   the specific methods.</li></ul></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>version:</b>&nbsp;&nbsp;</td><td>1.0</td>
  </tr>
  <tr>
    <td><b>author:</b>&nbsp;&nbsp;</td><td>S.Radovanovic</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../database/MySQLConnection.html">MySQLConnection</a>, <a href="../database/TableColumn.html">TableColumn</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$_arrObjTableColumns"></a>
	<p></p>
	<h4>$_arrObjTableColumns = <span class="value">array()</span></h4>
	<p>[line 36]</p>
  
  <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$_arrPRIColumns"></a>
	<p></p>
	<h4>$_arrPRIColumns = <span class="value">array()</span></h4>
	<p>[line 32]</p>
  
  <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$_arrSaveColumns"></a>
	<p></p>
	<h4>$_arrSaveColumns = <span class="value">array()</span></h4>
	<p>[line 30]</p>
  
  <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$_arrStateColumns"></a>
	<p></p>
	<h4>$_arrStateColumns = <span class="value">array()</span></h4>
	<p>[line 34]</p>
  
  <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$_arrUpdateColumns"></a>
	<p></p>
	<h4>$_arrUpdateColumns = <span class="value">array()</span></h4>
	<p>[line 31]</p>
  
  <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$_arrVirtualColumns"></a>
	<p></p>
	<h4>$_arrVirtualColumns = <span class="value">array()</span></h4>
	<p>[line 33]</p>
  
  <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$_objDbConn"></a>
	<p></p>
	<h4>$_objDbConn = <span class="value"></span></h4>
	<p>[line 40]</p>
  
  <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$_tablename"></a>
	<p></p>
	<h4>$_tablename = <span class="value"></span></h4>
	<p>[line 38]</p>
  
  <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="methodTableDataManagement"></a>
	<h3>constructor TableDataManagement <span class="smalllinenumber">[line 47]</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>TableDataManagement TableDataManagement(
DbConn
&$objDbConn, String
$tablename)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Constructor<br /><br /><br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">DbConn&nbsp;&nbsp;</td>
        <td><b>&$objDbConn</b>&nbsp;&nbsp;</td>
        <td>Connection to database (reference)</td>
      </tr>
          <tr>
        <td class="type">String&nbsp;&nbsp;</td>
        <td><b>$tablename</b>&nbsp;&nbsp;</td>
        <td>Name of the table to be managed</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methoddelete"></a>
	<h3>method delete <span class="smalllinenumber">[line 271]</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(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Delete the data from the database (specified by it's on set key)<br /><br /><br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodget"></a>
	<h3>method get <span class="smalllinenumber">[line 140]</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(
column
$column, [db
$db = false])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Get the TableDataManagement information<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>the value of the selected column</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">column&nbsp;&nbsp;</td>
        <td><b>$column</b>&nbsp;&nbsp;</td>
        <td>String the column to be returned</td>
      </tr>
          <tr>
        <td class="type">db&nbsp;&nbsp;</td>
        <td><b>$db</b>&nbsp;&nbsp;</td>
        <td>Bool do we have to return the db value?</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetObject"></a>
	<h3>method getObject <span class="smalllinenumber">[line 187]</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 getObject(
column
$column)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Get the object specified by the column in column.<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>return the object specified by column</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">column&nbsp;&nbsp;</td>
        <td><b>$column</b>&nbsp;&nbsp;</td>
        <td>String the object to be returned</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetTableName"></a>
	<h3>method getTableName <span class="smalllinenumber">[line 76]</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 getTableName(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Return the name of the table used for managing<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>Name of the table</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetUpdateColumnArray"></a>
	<h3>method getUpdateColumnArray <span class="smalllinenumber">[line 347]</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>Array getUpdateColumnArray(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Retrieve the update column array<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>Update column array</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetVirtual"></a>
	<h3>method getVirtual <span class="smalllinenumber">[line 157]</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 getVirtual(
column
$column, db
1)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Get data for columns that aren't specified in the TDM 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>the value of the selected column</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">db&nbsp;&nbsp;</td>
        <td><b>1</b>&nbsp;&nbsp;</td>
        <td>Bool do we have to return the db value?</td>
      </tr>
          <tr>
        <td class="type">column&nbsp;&nbsp;</td>
        <td><b>$column</b>&nbsp;&nbsp;</td>
        <td>String the column to be returned</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodinit"></a>
	<h3>method init <span class="smalllinenumber">[line 68]</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 init(
objDbConn
&$objDbConn)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		External initialization to set the database connection<br /><br /><br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">objDbConn&nbsp;&nbsp;</td>
        <td><b>&$objDbConn</b>&nbsp;&nbsp;</td>
        <td>connection to the database</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodload"></a>
	<h3>method load <span class="smalllinenumber">[line 284]</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>Bool load(
[Array
$arrPRIColumns = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		When 'TableDataManagement' information is requested for a specific id, then we have to load all 'TableDataManagement' information.<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>Succes or not?</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">Array&nbsp;&nbsp;</td>
        <td><b>$arrPRIColumns</b>&nbsp;&nbsp;</td>
        <td>Array containg the keyvalues of the requested record</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsave"></a>
	<h3>method save <span class="smalllinenumber">[line 210]</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(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Save the TableDataManagement data 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>public</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodset"></a>
	<h3>method set <span class="smalllinenumber">[line 86]</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(
column
$column, value
$value)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Set the data of the TableDataManagement<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">column&nbsp;&nbsp;</td>
        <td><b>$column</b>&nbsp;&nbsp;</td>
        <td>String the column where the value has to be stored into</td>
      </tr>
          <tr>
        <td class="type">value&nbsp;&nbsp;</td>
        <td><b>$value</b>&nbsp;&nbsp;</td>
        <td>String the value of the column</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsetArray"></a>
	<h3>method setArray <span class="smalllinenumber">[line 109]</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 setArray(
arrData
$arrData)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Set the data of the TableDataManagement passed through an array<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">arrData&nbsp;&nbsp;</td>
        <td><b>$arrData</b>&nbsp;&nbsp;</td>
        <td>Array array containing all data (+ overhead, but that will be skipped)</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsetColumnLabel"></a>
	<h3>method setColumnLabel <span class="smalllinenumber">[line 124]</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 setColumnLabel(
mixed
$column, String
$label)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Set the label of a specific column<br /><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>$label</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodupdate"></a>
	<h3>method update <span class="smalllinenumber">[line 238]</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(
[Array
$arrExtColumns = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Update the TableDataManagement data in the database<br /><br /><br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">Array&nbsp;&nbsp;</td>
        <td><b>$arrExtColumns</b>&nbsp;&nbsp;</td>
        <td>Array containing the columns to be updated (can also be set through @see TableDataManagement.seeArray)</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method_getState"></a>
	<h3>method _getState <span class="smalllinenumber">[line 172]</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 _getState(
column
$column)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Get data for columns that is specified through rememberState<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>the value of the selected column</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">column&nbsp;&nbsp;</td>
        <td><b>$column</b>&nbsp;&nbsp;</td>
        <td>String the column to be returned</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method_reload"></a>
	<h3>method _reload <span class="smalllinenumber">[line 323]</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(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Reload the object with data from 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>public</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method_rememberState"></a>
	<h3>method _rememberState <span class="smalllinenumber">[line 201]</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 _rememberState(
String
$columnname)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Remember the state of the column specified in the parameter.<br /><br /><p>The state columns are only interesting for columnvalues that may be updated  (so the updatecolumns array).</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 /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">String&nbsp;&nbsp;</td>
        <td><b>$columnname</b>&nbsp;&nbsp;</td>
        <td>columnname</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method__constructor"></a>
	<h3>method __constructor <span class="smalllinenumber">[line 60]</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 __constructor(
objDbConn
&$objDbConn, String
$tablename)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Call through to the 'real' constructor (if implemented for PHP5)<br /><br /><br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">objDbConn&nbsp;&nbsp;</td>
        <td><b>&$objDbConn</b>&nbsp;&nbsp;</td>
        <td>Connection to database (reference)</td>
      </tr>
          <tr>
        <td class="type">String&nbsp;&nbsp;</td>
        <td><b>$tablename</b>&nbsp;&nbsp;</td>
        <td>Name of the table to be managed</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
</div><br />


        <div class="credit">
		    <hr />
		    Documentation generated on Thu, 23 Jun 2005 17:46:22 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>
Return current item: Table Data Management