@@ 808-810 (lines=3) @@ | ||
805 | // die('---'); |
|
806 | $col = new Column\Select($querySelect, $v[0]['name']); |
|
807 | //$col->setType(new Type\Image()); |
|
808 | if (strpos($v[0]['data']['fileextension'], 'png') !== false) { |
|
809 | $col->addFormatter($imageFormatter); |
|
810 | } |
|
811 | if (strpos($v[0]['data']['fileextension'], 'mp4') !== false) { |
|
812 | $col->addFormatter(new Formatter\Link()); |
|
813 | } |
|
@@ 811-813 (lines=3) @@ | ||
808 | if (strpos($v[0]['data']['fileextension'], 'png') !== false) { |
|
809 | $col->addFormatter($imageFormatter); |
|
810 | } |
|
811 | if (strpos($v[0]['data']['fileextension'], 'mp4') !== false) { |
|
812 | $col->addFormatter(new Formatter\Link()); |
|
813 | } |
|
814 | if (strpos($v[0]['data']['fileextension'], 'pdf') !== false) { |
|
815 | $col->addFormatter(new Formatter\Link()); |
|
816 | } |
|
@@ 814-816 (lines=3) @@ | ||
811 | if (strpos($v[0]['data']['fileextension'], 'mp4') !== false) { |
|
812 | $col->addFormatter(new Formatter\Link()); |
|
813 | } |
|
814 | if (strpos($v[0]['data']['fileextension'], 'pdf') !== false) { |
|
815 | $col->addFormatter(new Formatter\Link()); |
|
816 | } |
|
817 | } else { |
|
818 | $col = new Column\Select($querySelect, $v[0]['name']); |
|
819 | } |