PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB_DataObject_FormBuilder » Bug #4206

Filter for selection box and calling statically _array2date

Details

Request #4206Filter for selection box and calling statically _array2date
Submitted2005-04-22 17:06 UTC
Fromvtamara at pasosdejesus dot org
Assignedjustinpatrin
StatusWont fix
PackageDB_DataObject_FormBuilder
PHP Version4.3.8
OSOpenBSD
Roadmaps(Not assigned)

Comments

[2005-04-22 17:06 UTC] vtamara at pasosdejesus dot org

Description:
------------
Whit this small patch, it is possible to filter easily
the options of a selection box.

Just define fb_selectFilter in an object of type DataObject:

$formbuildobject->_do->fb_selectFilters=array(
'field' => array('id in (SELECT id_antecedente '.
'FROM antecedente_caso WHERE id_caso=\'100\')'));
$formbuildobject->getForm();

It is also possible to call statically _array2date.

Thank you for the good work. God illuminate us.

Reproduce code:
---------------
The patch is against FormBuilder 0.13.3

http://www.pasosdejesus.org/parches/formbuilder0-13-3-filter-array2date.patch