| @@ 835-837 (lines=3) @@ | ||
| 832 | // die('---'); |
|
| 833 | $col = new Column\Select($querySelect, $v[0]['name']); |
|
| 834 | //$col->setType(new Type\Image()); |
|
| 835 | if (strpos($v[0]['data']['fileextension'], 'png') !== false) { |
|
| 836 | $col->addFormatter($imageFormatter); |
|
| 837 | } |
|
| 838 | if (strpos($v[0]['data']['fileextension'], 'mp4') !== false) { |
|
| 839 | $col->addFormatter(new Formatter\Link()); |
|
| 840 | } |
|
| @@ 838-840 (lines=3) @@ | ||
| 835 | if (strpos($v[0]['data']['fileextension'], 'png') !== false) { |
|
| 836 | $col->addFormatter($imageFormatter); |
|
| 837 | } |
|
| 838 | if (strpos($v[0]['data']['fileextension'], 'mp4') !== false) { |
|
| 839 | $col->addFormatter(new Formatter\Link()); |
|
| 840 | } |
|
| 841 | if (strpos($v[0]['data']['fileextension'], 'pdf') !== false) { |
|
| 842 | $col->addFormatter(new Formatter\Link()); |
|
| 843 | } |
|
| @@ 841-843 (lines=3) @@ | ||
| 838 | if (strpos($v[0]['data']['fileextension'], 'mp4') !== false) { |
|
| 839 | $col->addFormatter(new Formatter\Link()); |
|
| 840 | } |
|
| 841 | if (strpos($v[0]['data']['fileextension'], 'pdf') !== false) { |
|
| 842 | $col->addFormatter(new Formatter\Link()); |
|
| 843 | } |
|
| 844 | } else { |
|
| 845 | $col = new Column\Select($querySelect, $v[0]['name']); |
|
| 846 | } |
|