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 #3769

get* method not called

Details

Submitted2005-03-10 17:37 UTC
Fromlistsdg at yahoo dot fr
Assignedasnagy
StatusClosed
PackageStructures_DataGrid
PHP Version4.3.10
Roadmaps(Not assigned)

Comments

[2005-03-10 17: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*)