PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Structures » Structures_DataGrid » Bug #2124

Record_DataObject does not handle $fb_fieldsToRender

Details

Submitted2004-08-14 21:45 UTC
Fromylf at xung dot org
Assignedasnagy
StatusClosed
PackageStructures_DataGrid
PHP Version4.3.4
OSLinux Debian (testing)
Roadmaps(Not assigned)

Comments

[2004-08-14 21:45 UTC] ylf at xung dot org

Description:
------------
The $fb_fieldsToRender, as defined by FormBuilder, is a property that can be set in the DataObjects to specify which fields are to be rendered.

Example :

Class DO_User extends DB_DataObject {
var $username;
var $password;
var $realname;
var $phonenumber;

var $fb_fieldsToRender = array(
'username',
'realname',
'phonenumber');
}

This way we do not render passwords...

DG_R_DO should handle this property or a something similar.

By the way, I need this issue to be fixed in some way or another for the new DG_Source_DO class to work.

--
Olivier Guilyardi

[2004-08-14 22:02 UTC] ylf at xung dot org

Well, I just defined the following new option:
DG_Source_DO::_options['render_property']

By default, it's set to 'fb_fieldsToRender'.

It would be nice if DG_Record_DO accepts a similar option, so that I can set it when creating records from the DG_Source_DO::fetch() function.

[2004-10-22 15:02 UTC] asnagy at webitecture dot org

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.