<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mark Wiesemann &#187; DB_Table</title>
	<atom:link href="http://www.markwiesemann.eu/category/pear/db_table/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markwiesemann.eu</link>
	<description></description>
	<lastBuildDate>Sun, 15 Aug 2010 15:57:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Generator for DB_Table</title>
		<link>http://www.markwiesemann.eu/2007/03/27/generator-for-db_table/</link>
		<comments>http://www.markwiesemann.eu/2007/03/27/generator-for-db_table/#comments</comments>
		<pubDate>Tue, 27 Mar 2007 20:03:49 +0000</pubDate>
		<dc:creator>Mark Wiesemann</dc:creator>
				<category><![CDATA[DB_Table]]></category>
		<category><![CDATA[PEAR]]></category>

		<guid isPermaLink="false">http://www.markwiesemann.eu/2007/03/27/generator-for-db_table/</guid>
		<description><![CDATA[As announced on February 18th, a generator for DB_Table is available now. David C. Morse has put some work into this new generator script which was based on the script that PEAR::DB_DataObject offers. Some more details about the generator, cited from the changelog: This class generates code required as an interface to an existing database [...]]]></description>
			<content:encoded><![CDATA[<p>As announced on <a href="http://www.markwiesemann.eu/2007/02/18/db_table-150rc1-is-available/">February 18th</a>, a generator for <a href="http://pear.php.net/package/DB_Table/">DB_Table</a> is available now. <a href="http://www.cems.umn.edu/directory/facdetail.php?facid=morse012">David C. Morse</a> has put some work into this new generator script which was based on the script that <a href="http://pear.php.net/package/DB_DataObject">PEAR::DB_DataObject</a> offers.<br />
<span id="more-25"></span><br />
Some more details about the generator, cited from the changelog:</p>
<blockquote><p>This class generates code required as an interface to an existing database by reverse engineering the database. It generates a DB_Table subclass definition for each table, and a script that instantiates one instance of each DB_Table subclass, and a parent DB_Table_Database object. See the documentation block for the new class for usage instructions, and the tests/generator/tests.php script for an example.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.markwiesemann.eu/2007/03/27/generator-for-db_table/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>DB_Table 1.5.0RC1 is available</title>
		<link>http://www.markwiesemann.eu/2007/02/18/db_table-150rc1-is-available/</link>
		<comments>http://www.markwiesemann.eu/2007/02/18/db_table-150rc1-is-available/#comments</comments>
		<pubDate>Sun, 18 Feb 2007 22:25:26 +0000</pubDate>
		<dc:creator>Mark Wiesemann</dc:creator>
				<category><![CDATA[DB_Table]]></category>
		<category><![CDATA[PEAR]]></category>

		<guid isPermaLink="false">http://www.markwiesemann.eu/2007/02/18/db_table-150rc1-is-available/</guid>
		<description><![CDATA[Since last week, a new major release of DB_Table is available. Almost all the great work for the new release was done by David C. Morse who is now the co-lead of DB_Table. Welcome, David! So what&#8217;s new in release 1.5.0? The changelog says: New DB_Table_Database class added to package. The new class provides a [...]]]></description>
			<content:encoded><![CDATA[<p>Since last week, a new major release of <a href="http://pear.php.net/package/DB_Table/">DB_Table</a> is available. Almost all the great work for the new release was done by <a href="http://www.cems.umn.edu/directory/facdetail.php?facid=morse012">David C. Morse</a> who is now the co-lead of DB_Table. Welcome, David!</p>
<p>So what&#8217;s new in release 1.5.0? The changelog says:<br />
<span id="more-24"></span></p>
<blockquote>
<ul>
<li>New DB_Table_Database class added to package. The new class provides a model of foreign key relationships between tables in a database, and features that depend on knowledge of these relationships. User documentation for this class is provided in docs/database/manual.html.</li>
<li>Added auto-increment feature to DB_Table insert() method. The value of a new $auto_inc_col property is the name of an auto-increment column (if any) or null.</li>
<li>Added toXML() method to DB_Table, which emits the table schema in the MDB2 XML DTD, with an extension to describe foreign key references. This method is called by the toXML() method of DB_Table_Database, which emits an XML schema string for an entire database.</li>
</ul>
</blockquote>
<p>All existing users of DB_Table (and also interested people, of course) are encouraged to install the new release by <code>pear install DB_Table-beta</code> and to report via the <a href="http://pear.php.net/package/DB_Table/bugs">bug tracker</a> any occuring problem. But as we have a lot of unit tests for the new features, we hope that only very minor problems will occur.</p>
<p>Finally, a short comment on the near future of DB_Table: We are planning to work on two things in the next weeks and months. The first and most important thing is to convert the documentation from <a href="http://wiki.ciaweb.net/yawiki/index.php?area=DB_Table">Paul M. Jones&#8217; wiki</a> into the PEAR manual and to update all pages to reflect the functionality of the current release. This will need a lot of work and help is always welcome. (<a href="/imprint/">Contact me</a> for more details if you&#8217;re interested.) The second task is two write a script that generates a DB_Table class file from an existing table. This will make things a lot easier for both new and existing users of DB_Table. David already started to work on such a generator.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markwiesemann.eu/2007/02/18/db_table-150rc1-is-available/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DB_Table 1.4.0 released</title>
		<link>http://www.markwiesemann.eu/2006/11/09/db_table-140-released/</link>
		<comments>http://www.markwiesemann.eu/2006/11/09/db_table-140-released/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 22:10:59 +0000</pubDate>
		<dc:creator>Mark Wiesemann</dc:creator>
				<category><![CDATA[DB_Table]]></category>
		<category><![CDATA[PEAR]]></category>

		<guid isPermaLink="false">http://www.markwiesemann.eu/2006/11/09/db_table-140-released/</guid>
		<description><![CDATA[I have released DB_Table 1.4.0 today. Besides small fixes, there is a new feature about static form elements, and the handling of file form elements was optimized. Static form elements like &#8216;header&#8217;, &#8216;static&#8217;, &#8216;submit&#8217; or &#8216;reset&#8217; can now easily be added to forms generated by DB_Table: you just need define an array called $frm in [...]]]></description>
			<content:encoded><![CDATA[<p>I have released <a href="http://pear.php.net/package/DB_Table">DB_Table</a> 1.4.0 today. Besides small fixes, there is a new feature about static form elements, and the handling of file form elements was optimized.</p>
<p><span id="more-11"></span></p>
<p>Static form elements like &#8216;header&#8217;, &#8216;static&#8217;, &#8216;submit&#8217; or &#8216;reset&#8217; can now easily be added to forms generated by DB_Table: you just need define an array called $frm in your extended class (let&#8217;s assume that you have instantiated this class in <code>$obj</code>), create a form object (e.g. via <code>$form =&#038; $obj->getForm(), ...)</code> and then call <code>$obj->addStaticFormElements($form);</code>.</p>
<p>The <code>$frm</code> array has a very similar format like the column definition format. The key is the field name and the value is an array with details about the element. There is a special key called &#8216;before&#8217; in the details array. If it is not given, or is empty (or null) the element will be appended at the end. If it is given, the element is added before the element specified via &#8216;before&#8217;. An example how the <code>$frm</code> array could look like:</p>
<pre class="brush: php; title: ; notranslate">
var $frm = array(
    'headline' =&gt; array(
        'before'        =&gt; 'name',
        'qf_type'       =&gt; 'header',
        'qf_setvalue'   =&gt; 'Headline'),
    'submit'   =&gt; array(
        'before'        =&gt; null,
        'qf_type'       =&gt; 'submit',
        'qf_setvalue'   =&gt; 'Save data')
);
</pre>
<p>This example assumes that there is an element called &#8216;name&#8217; in the form. The header element will be placed before this &#8216;name&#8217; element, and the submit button will be placed at the end of the form.</p>
<p>For columns with <code>'qf_type' == 'file'</code> there were some optimizations: If the column is marked as required, the &#8216;uploadedfile&#8217; QF rule is now set instead of the &#8216;required&#8217; QF rule. In addition, the &#8216;numeric&#8217; and &#8216;maxlength&#8217; QF rules are not set anymore (of course, the corresponding checks will still be done before inserting/updating data into the database).</p>
<p>Finally, I have added support for &#8216;hierselect&#8217; and &#8216;jscalendar&#8217; QuickForm elements.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markwiesemann.eu/2006/11/09/db_table-140-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

