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

Call to $this in static method.

Details

Submitted2005-01-03 22:02 UTC
Fromjason at greenhell dot com
Assignedasnagy
StatusClosed
PackageStructures_DataGrid
PHP Version5.0.2
OSLinux
Roadmaps(Not assigned)

Comments

[2005-01-03 22:02 UTC] jason at greenhell dot com

Description:
------------
In Structures_DataGrid_DataSource_Array.php, line 121, there is a call to $this->sort() in the static method staticFetch(). Since this is a statically called method, it cannot use $this reference. Instead, it should read:

Structures_DataGrid_DataSource_Array::sort($sortField, $sortDir, $ar);

Or in PHP5:

self::sort($sortField, $sortDir, $ar);

[2005-01-05 16:13 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.