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)    
Comments Add Comment Add patch

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 50 - 50 = ?

 [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; }


 [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 by the end of next Sunday (CET). If this was a problem with the 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.