| 1 | <?php |
||
| 10 | class GridDati |
||
| 11 | { |
||
| 12 | |||
| 13 | private $grid; |
||
| 14 | |||
| 15 | 1 | public function __construct($testata) |
|
| 16 | { |
||
| 17 | 1 | if (isset($testata["gridtype"])) { |
|
| 18 | $gridtype = $testata["gridtype"]; |
||
| 19 | } else { |
||
| 20 | 1 | $gridtype = 'Jqgrid'; |
|
| 21 | } |
||
| 22 | 1 | $class = '\\Fi\\CoreBundle\\DependencyInjection\\' . $gridtype . "Dati"; |
|
| 23 | 1 | $this->grid = new $class($testata); |
|
| 24 | 1 | } |
|
| 25 | |||
| 26 | 1 | public function getResponse() |
|
| 30 | } |
||
| 31 |