| 1 | <?php |
||
| 13 | class GridTestata |
||
| 14 | { |
||
| 15 | |||
| 16 | private $grid; |
||
| 17 | |||
| 18 | 13 | public function __construct($testata) |
|
| 19 | { |
||
| 20 | 13 | if (isset($testata["gridtype"])) { |
|
| 21 | $gridtype = $testata["gridtype"]; |
||
| 22 | } else { |
||
| 23 | 13 | $gridtype = 'Jqgrid'; |
|
| 24 | } |
||
| 25 | 13 | $class = '\\Fi\\CoreBundle\\DependencyInjection\\' . $gridtype . "Testata"; |
|
| 26 | 13 | $this->grid = new $class($testata); |
|
| 27 | 13 | } |
|
| 28 | |||
| 29 | 13 | public function getResponse() |
|
| 33 | } |
||
| 34 |