[ANNOUNCEMENT] DB_Table-1.4.0 (stable) Released.

From: Date: Thu, 09 Nov 2006 20:57:28 +0000
Subject: [ANNOUNCEMENT] DB_Table-1.4.0 (stable) Released.
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25750@lists.php.net to get a copy of this message
The new PEAR package DB_Table-1.4.0 (stable) has been released at http://pear.php.net/. Release notes ------------- - Static form elements like 'header', 'static', 'submit' or 'reset' can now easily be added: define an array called $frm in your class, create a form object (e.g. yourself, via $obj->getForm(), ...) and then call $obj->addStaticFormElements($form); The $frm 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 'before' 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 'before'. Example: var $frm = array('headline' => array('before' => 'name', 'qf_type' => 'header', 'qf_setvalue' => 'Headline' ), 'submit' => array('before' => null, 'qf_type' => 'submit', 'qf_setvalue' => 'Save data' )); This example assumes that there is an element called 'name' in the form. The header element will be placed before this 'name' element, and the submit button will be placed at the end of the form. - added support for 'hierselect' and 'jscalendar' QuickForm elements as 'qf_type' values in the column definition arrays (thanks to Arne Bippes and QDog for the patches) - fixes / optimizations for columns with 'qf_type' == 'file': * if the column is marked as required, the 'uploadedfile' QF rule is now set instead of the 'required' QF rule * the 'numeric' and 'maxlength' QF rules are not set anymore (the corresponding checks will still be done before inserting/updating data into the database) - fixed wrong handling of errors in the constructor Package Info ------------ Builds on PEAR DB to abstract datatypes and automate table creation, data validation, insert, update, delete, and select; combines these with PEAR HTML_QuickForm to automatically generate input forms that match the table column definitions. Related Links ------------- Package home: http://pear.php.net/package/DB_Table Changelog: http://pear.php.net/package/DB_Table/download/1.4.0 Download: http://download.pear.php.net/package/DB_Table-1.4.0.tgz Authors ------- Mark Wiesemann <wiesemann@php.net> (lead)

« previous php.pear.general (#25750) next »