Location: PHPKode > projects > Open Power Template > docs/Opl/api.opl-debug-console.add-table.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pl">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="robots" content="all" />

	<title>addTable() - Open Power Libs</title>
	
	<link rel="stylesheet" type="text/css" href="design/generic.css" media="all"  />
	<link rel="stylesheet" type="text/css" href="design/print.css" media="print" />
	<!--[if lte IE 6]><link rel="stylesheet" href="design/ie.css" type="text/css" /><![endif]-->	
	<!--[if IE 7]><link rel="stylesheet" href="design/ie7.css" type="text/css" /><![endif]-->
</head>
<body>

<div id="wrap">
	<div id="header">
		<h1>Open Power Libs 2.0</h1>
		<h2>addTable()</h2>
		<p class="generated">@ 02.09.2010</p>
		<p class="location"><a href="index.html"><strong>User manual</strong></a> &raquo; <a href="api.html">API reference</a> &raquo; <a href="api.opl-debug-console.html">Opl_Debug_Console</a> &raquo; <a href="api.opl-debug-console.add-table.html">Opl_Debug_Console::addTable()</a></p>
	</div>
	
	<div id="content"><dl class="location"><dt><a href="api.opl-debug-console.html">4.3. Opl_Debug_Console</a><br/>4.3.4. addTable()</dt><dd class="prev">4.3.3. addListOptions()<br/><a href="api.opl-debug-console.add-list-options.html">&laquo; Previous</a></dd><dd class="next">4.3.5. addTableInformation()<br/><a href="api.opl-debug-console.add-table-information.html">Next &raquo;</a></dd></dl>	<h1>4.3.4. addTable()</h1><div class="tf_reference"><table><tr><th>Status</th><td>static public</td></tr><tr><th>Reference</th><td><code>void Opl_Debug_Console::addTable( String $id, String $title, Array $columns )</code></td></tr></table><hr/></div><p>Creates a new table in the debug console entitled <code>$title</code>. The <code>$id</code> should be an unique key that allows to refer to this table later. <code>$columns</code> must contain a list of table column titles. You may prepend them with the width, for example <code>50%:Column name</code>. An example:</p>

<pre class="php">Opl_Debug_Console<span style="color: #339933;">::</span><span style="color: #004000;">addTable</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'table'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'My debugging table'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'30:#'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'*:Column 1'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'25%:Column 2'</span>
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre>
<dl class="location location-bottom"><dt>4.3.4. addTable()<br/><a href="api.opl-debug-console.html">4.3. Opl_Debug_Console</a></dt><dd class="prev"><a href="api.opl-debug-console.add-list-options.html">&laquo; Previous</a><br/>4.3.3. addListOptions()</dd><dd class="next"><a href="api.opl-debug-console.add-table-information.html">Next &raquo;</a><br/>4.3.5. addTableInformation()</dd></dl>		</div>
	
	<div id="footer">
		<p>Copyright &copy; <a href="http://www.invenzzia.org/">Invenzzia Group 2008-2009</a></p>
		<p>Available under the terms of license: <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License 1.2</a></p>
		<p>Generated by <strong>TypeFriendly 0.1.4</strong> by <a href="http://www.invenzzia.org/">Invenzzia</a></p>
	</div>
</div>

</body>
</html>
Return current item: Open Power Template