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

Request #6621 get reference to column by name
Submitted: 2006-01-29 20:24 UTC
From: chrismir Assigned: wiesemann
Status: Closed Package: Structures_DataGrid (version 0.6.3)
PHP Version: 4.4.0 OS: Suse 10.0
Roadmaps: (Not assigned)    
Subscription  


 [2006-01-29 20:24 UTC] chrismir
Description: ------------ Suggestion to add a function to Structures_DataGrid_Core, that allows for retreiving a reference to a column by passing a columnName or fieldName. This would simplify altering column attributes afterwards, especially when generated from a data object. example code added in 'test script' Test script: --------------- function &getColumnByName($name) { foreach ($this->columnSet as $key => $column) { if ($column->columnName === $name) { return $this->columnSet[$key]; } } return false; }

Comments

 [2006-01-30 14:34 UTC] wiesemann
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.