-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Renderer.php * Update PrepareData.php * - unittests update, removed deprecated method `getMock` (#238) - also removed deprecated method setExpectedException - run cs fix - update composer for cs-fix * - run cs fix - update composer doctrine - datagrid should now work with zf2 and zf3 * added unit tests for nightly
- Loading branch information
1 parent
58eee24
commit ae36f05
Showing
46 changed files
with
442 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,10 @@ php: | |
- 5.6 | ||
- 7 | ||
- hhvm | ||
- nightly | ||
|
||
allow_failures: | ||
- php: nightly | ||
|
||
env: | ||
matrix: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
/** | ||
* Image type | ||
*/ | ||
|
||
namespace ZfcDatagrid\Column\Type; | ||
|
||
use InvalidArgumentException; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 16 additions & 5 deletions
21
src/ZfcDatagrid/Renderer/BootstrapTable/View/Helper/TableRowFactory.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,35 @@ | ||
<?php | ||
namespace ZfcDatagrid\Renderer\BootstrapTable\View\Helper; | ||
|
||
use Interop\Container\ContainerInterface; | ||
use Zend\ServiceManager\AbstractPluginManager; | ||
use Zend\ServiceManager\FactoryInterface; | ||
use Zend\ServiceManager\ServiceLocatorInterface; | ||
|
||
class TableRowFactory implements FactoryInterface | ||
{ | ||
/** | ||
* @param ServiceLocatorInterface|AbstractPluginManager $serviceLocator | ||
* @param ContainerInterface $container | ||
* @param string $requestedName | ||
* @param array|null $options | ||
* @return TableRow | ||
*/ | ||
public function createService(ServiceLocatorInterface $serviceLocator) | ||
public function __invoke(ContainerInterface $container, $requestedName, array $options = null) | ||
{ | ||
$tableRow = new TableRow(); | ||
if ($serviceLocator->getServiceLocator()->has('translator')) { | ||
/** @noinspection PhpParamsInspection */ | ||
$tableRow->setTranslator($serviceLocator->getServiceLocator()->get('translator')); | ||
if ($container->has('translator')) { | ||
$tableRow->setTranslator($container->get('translator')); | ||
} | ||
|
||
return $tableRow; | ||
} | ||
|
||
/** | ||
* @param ServiceLocatorInterface|AbstractPluginManager $serviceLocator | ||
* @return TableRow | ||
*/ | ||
public function createService(ServiceLocatorInterface $serviceLocator) | ||
{ | ||
return $this($serviceLocator->getServiceLocator(), TableRow::class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
* Render datagrid as CSV | ||
* | ||
*/ | ||
|
||
namespace ZfcDatagrid\Renderer\Csv; | ||
|
||
use Zend\Http\Headers; | ||
|
21 changes: 16 additions & 5 deletions
21
src/ZfcDatagrid/Renderer/JqGrid/View/Helper/ColumnsFactory.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,35 @@ | ||
<?php | ||
namespace ZfcDatagrid\Renderer\JqGrid\View\Helper; | ||
|
||
use Interop\Container\ContainerInterface; | ||
use Zend\ServiceManager\AbstractPluginManager; | ||
use Zend\ServiceManager\FactoryInterface; | ||
use Zend\ServiceManager\ServiceLocatorInterface; | ||
|
||
class ColumnsFactory implements FactoryInterface | ||
{ | ||
/** | ||
* @param ServiceLocatorInterface|AbstractPluginManager $serviceLocator | ||
* @param ContainerInterface $container | ||
* @param string $requestedName | ||
* @param array|null $options | ||
* @return Columns | ||
*/ | ||
public function createService(ServiceLocatorInterface $serviceLocator) | ||
public function __invoke(ContainerInterface $container, $requestedName, array $options = null) | ||
{ | ||
$tableRow = new Columns(); | ||
if ($serviceLocator->getServiceLocator()->has('translator')) { | ||
/** @noinspection PhpParamsInspection */ | ||
$tableRow->setTranslator($serviceLocator->getServiceLocator()->get('translator')); | ||
if ($container->has('translator')) { | ||
$tableRow->setTranslator($container->get('translator')); | ||
} | ||
|
||
return $tableRow; | ||
} | ||
|
||
/** | ||
* @param ServiceLocatorInterface|AbstractPluginManager $serviceLocator | ||
* @return Columns | ||
*/ | ||
public function createService(ServiceLocatorInterface $serviceLocator) | ||
{ | ||
return $this($serviceLocator->getServiceLocator(), Columns::class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
/** | ||
* Output as an excel file | ||
*/ | ||
|
||
namespace ZfcDatagrid\Renderer\PHPExcel; | ||
|
||
use PHPExcel; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.