Location: PHPKode > projects > Aukyla Document Management System > doc/html/a00155.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>Aukyla PHP Framework</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="StyleSheet" href="auton.css" type="text/css" media="screen">
  </head>

  <body>
    <div id="mainmenu">
      <a href="http://www.auton.nl/" class="home">Home</a>
    </div>
    <div id="submenu">
      <a class="logo" href="http://www.auton.nl/"></a>

      <div class="head">Ads</div>
      <a href="http://sourceforge.net/"><img src="http://sourceforge.net/sflogo.php?group_id=116358&amp;type=1" alt="SourceForge.net Logo" style="padding: 2px 4px; width: 88px; height: 31px; border: 0px"></a>
      <a href="http://getfirefox.com/" title="Get Firefox - The Browser, Reloaded."><img src="http://www.mozilla.org/products/firefox/buttons/getfirefox_small.png" alt="Get Firefox" style="width: 110px; height: 32px; border: 0px"></a>
    </div>
    <div id="main">
<!-- Generated by Doxygen 1.3.9.1 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<h1>Table Class Reference</h1><p>Inheritance diagram for Table:
<p><center><img src="a00155.png" usemap="#Table_map" border="0" alt=""></center>
<map name="Table_map">
<area href="a00096.html" alt="Container" shape="rect" coords="0,56,74,80">
<area href="a00166.html" alt="Widget" shape="rect" coords="0,0,74,24">
<area href="a00108.html" alt="GridLayout" shape="rect" coords="0,168,74,192">
</map>
<a href="a00067.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
Class that provides functions for building and displaying tables. 
<p>

<p>
Definition at line <a class="el" href="a00236.html#l00028">28</a> of file <a class="el" href="a00236.html">Tables.php</a>.<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00155.html#a0">__construct</a> (<a class="el" href="a00096.html">Container</a> $parent)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00155.html#a1">setRowsAlternate</a> ($rowsAlternate)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00155.html#a2">rowsAlternate</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00155.html#a3">setColumnsAlternate</a> ($columnsAlternate)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00155.html#a4">columnsAlternate</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00155.html#a5">addWidget</a> (<a class="el" href="a00157.html">TableRow</a> $widget)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00155.html#a6">setWidth</a> ($width)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00155.html#a7">width</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00155.html#a8">lastRow</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00155.html#a9">cell</a> ($row, $column)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00155.html#a10">show</a> ()</td></tr>

</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a0" doxytag="Table::__construct"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">Table::__construct           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a00096.html">Container</a> $&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>parent</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constructor. Creates an empty table.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>parent</em>&nbsp;</td><td>Parent widget to add the table to.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a00236.html#l00035">35</a> of file <a class="el" href="a00236.html">Tables.php</a>.
<p>
References <a class="el" href="a00236.html#l00143">lastRow()</a>, and <a class="el" href="a00236.html#l00132">width()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a5" doxytag="Table::addWidget"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">Table::addWidget           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a00157.html">TableRow</a> $&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>widget</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Adds a widget to the children list.<p>
Only <a class="el" href="a00157.html">TableRow</a> can be added to a Table.<p>
<dl compact><dt><b>Note:</b></dt><dd>You shouldn't have to call this function directly as the constructor of widgets will already call this function for you.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>widget</em>&nbsp;</td><td>The widget to add to the children list.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a00236.html#l00109">109</a> of file <a class="el" href="a00236.html">Tables.php</a>.
<p>
References <a class="el" href="a00236.html#l00143">lastRow()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a9" doxytag="Table::cell"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">Table::cell           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>row</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>column</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns a given <a class="el" href="a00156.html">TableCell</a> from this table.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>row</em>&nbsp;</td><td>The row number from to which the cell belongs, starting from 0. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>column</em>&nbsp;</td><td>The column number of the cell, starting from 0. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="a00156.html">TableCell</a> instance, or <code>NULL</code> if this cell does not exist.</dd></dl>

<p>
Definition at line <a class="el" href="a00236.html#l00156">156</a> of file <a class="el" href="a00236.html">Tables.php</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a4" doxytag="Table::columnsAlternate"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">Table::columnsAlternate           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns whether the columns in this table alternate.<p>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if this table's columns alternate, <code>false</code> otherwise.</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a00155.html#a3">setColumnsAlternate()</a></dd></dl>

<p>
Definition at line <a class="el" href="a00236.html#l00094">94</a> of file <a class="el" href="a00236.html">Tables.php</a>.
<p>
Referenced by <a class="el" href="a00236.html#l00082">setColumnsAlternate()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a8" doxytag="Table::lastRow"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">Table::lastRow           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the last row added to the table.<p>
<dl compact><dt><b>Returns:</b></dt><dd>The row last added to the table, or <code>false</code> if no rows have been added yet.</dd></dl>

<p>
Definition at line <a class="el" href="a00236.html#l00143">143</a> of file <a class="el" href="a00236.html">Tables.php</a>.
<p>
Referenced by <a class="el" href="a00236.html#l00035">__construct()</a>, and <a class="el" href="a00236.html#l00109">addWidget()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a2" doxytag="Table::rowsAlternate"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">Table::rowsAlternate           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns whether the rows in this table alternate.<p>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if this table's rows alternate, <code>false</code> otherwise.</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a00155.html#a1">setRowsAlternate()</a></dd></dl>

<p>
Definition at line <a class="el" href="a00236.html#l00067">67</a> of file <a class="el" href="a00236.html">Tables.php</a>.
<p>
Referenced by <a class="el" href="a00236.html#l00055">setRowsAlternate()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a3" doxytag="Table::setColumnsAlternate"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">Table::setColumnsAlternate           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>columnsAlternate</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets whether columns should alternate. This provides a quick way to let columns alternate in color by setting the CSS class 'alternate' on every second column.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>columnsAlternate</em>&nbsp;</td><td>Set to <code>true</code> to indicate columns should alternate, <code>false</code> otherwise.</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a00155.html#a4">columnsAlternate()</a></dd></dl>

<p>
Definition at line <a class="el" href="a00236.html#l00082">82</a> of file <a class="el" href="a00236.html">Tables.php</a>.
<p>
References <a class="el" href="a00236.html#l00094">columnsAlternate()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a1" doxytag="Table::setRowsAlternate"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">Table::setRowsAlternate           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>rowsAlternate</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets whether rows should alternate. This provides a quick way to let rows alternate in color by setting the CSS class 'alternate' on every second row.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rowsAlternate</em>&nbsp;</td><td>Set to <code>true</code> to indicate rows should alternate, <code>false</code> otherwise.</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a00155.html#a2">rowsAlternate()</a></dd></dl>

<p>
Definition at line <a class="el" href="a00236.html#l00055">55</a> of file <a class="el" href="a00236.html">Tables.php</a>.
<p>
References <a class="el" href="a00236.html#l00067">rowsAlternate()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a6" doxytag="Table::setWidth"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">Table::setWidth           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>width</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the width of the table in the number of columns. By default, the number of columns is determined by the row with the highest number of columns.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>The number of columns the table should be wide.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a00236.html#l00122">122</a> of file <a class="el" href="a00236.html">Tables.php</a>.
<p>
References <a class="el" href="a00236.html#l00132">width()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a10" doxytag="Table::show"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">Table::show           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Shows the table.
<p>
Reimplemented from <a class="el" href="a00096.html#a2">Container</a>.
<p>
Definition at line <a class="el" href="a00236.html#l00164">164</a> of file <a class="el" href="a00236.html">Tables.php</a>.
<p>
References <a class="el" href="a00236.html#l00132">width()</a>, and <a class="el" href="a00229.html#l00168">Output::write()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a7" doxytag="Table::width"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">Table::width           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the number of columns of the table.<p>
<dl compact><dt><b>Returns:</b></dt><dd>The number of columns the table is wide.</dd></dl>

<p>
Definition at line <a class="el" href="a00236.html#l00132">132</a> of file <a class="el" href="a00236.html">Tables.php</a>.
<p>
Referenced by <a class="el" href="a00236.html#l00035">__construct()</a>, <a class="el" href="a00236.html#l00122">setWidth()</a>, and <a class="el" href="a00236.html#l00164">show()</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="a00236.html">Tables.php</a></ul>
    </div>
  </body>
</html>
Return current item: Aukyla Document Management System