Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.3

Bug #3769 get* method not called
Submitted: 2005-03-10 12:37 UTC Modified: 2006-12-26 22:35 UTC
From: listsdg at yahoo dot fr Assigned: asnagy
Status: Closed Package: Structures_DataGrid
PHP Version: 4.3.10 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-03-10 12:37 UTC] listsdg at yahoo dot fr
Description: ------------ Line 221 of Structures_DataGrid_DataSource_DataObject, if a get* method exists, the datasource call a property instead of the method. Reproduce code: --------------- $getMethod = 'get'.$fName; if (method_exists($this->_dataobject, $getMethod)) { //$rec[$fName] = $this->_dataobject->$getMethod(&$this); $rec[$fName] = $this->_dataobject->$getMethod; } should be ...$getMethod() Expected result: ---------------- result of the existant get* method Actual result: -------------- notice error (Undefined property get*)

Comments

 [2005-03-11 17:52 UTC] asnagy
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.