AshishJoshi-asj / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Eval not working #156

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. update Grid column with 
 $grid->updateColumn('street', array(
//   'eval' => "strtoupper('{{street}}')",
   'eval' => "ucfirst('{{street}}')",
  ));

2. run Grid
3.

What is the expected output? What do you see instead?
Value capitalized (converted to lower case)
Original string

What version of the product are you using? On what operating system?
0.6alpha

Please provide any additional information below.

Original issue reported on code.google.com by vlatko.b...@gmail.com on 12 Feb 2010 at 4:57

GoogleCodeExporter commented 9 years ago
Hi,

Eval support has been dropped in favor of callback

 $grid->updateColumn('field', array(
            'title'=>'Field (ucase)',
            'callback'=>array(
                'function'=>create_function('$text', 'return strtoupper($text);'),
                'params'=>array('{{field}}')
            ),
        ));

Best Regards,
Bento Vilas Boas

Original comment by pao.fre...@gmail.com on 12 Feb 2010 at 5:02

GoogleCodeExporter commented 9 years ago
OK, thanks for info...

Original comment by vlatko.b...@gmail.com on 12 Feb 2010 at 5:04

GoogleCodeExporter commented 9 years ago

Original comment by bento.vi...@gmail.com on 3 Mar 2010 at 4:56