-
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.
- Loading branch information
1 parent
5f8451d
commit cec8bcb
Showing
2 changed files
with
6 additions
and
14 deletions.
There are no files selected for viewing
10 changes: 3 additions & 7 deletions
10
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,27 +1,23 @@ | ||
<?php | ||
|
||
|
||
namespace ZfcDatagrid\Renderer\BootstrapTable\View\Helper; | ||
|
||
|
||
use Zend\ServiceManager\FactoryInterface; | ||
use Zend\ServiceManager\ServiceLocatorInterface; | ||
|
||
class TableRowFactory implements FactoryInterface | ||
{ | ||
/** | ||
* @param ServiceLocatorInterface $serviceLocator | ||
* @param ServiceLocatorInterface $serviceLocator | ||
* @return TableRow | ||
*/ | ||
public function createService(ServiceLocatorInterface $serviceLocator) | ||
{ | ||
$tableRow = new TableRow(); | ||
if($serviceLocator->has('translator')){ | ||
if ($serviceLocator->has('translator')) { | ||
/** @noinspection PhpParamsInspection */ | ||
$tableRow->setTranslator($serviceLocator->get('translator')); | ||
} | ||
|
||
return $tableRow; | ||
} | ||
|
||
} | ||
} |
10 changes: 3 additions & 7 deletions
10
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,27 +1,23 @@ | ||
<?php | ||
|
||
|
||
namespace ZfcDatagrid\Renderer\JqGrid\View\Helper; | ||
|
||
|
||
use Zend\ServiceManager\FactoryInterface; | ||
use Zend\ServiceManager\ServiceLocatorInterface; | ||
|
||
class ColumnsFactory implements FactoryInterface | ||
{ | ||
/** | ||
* @param ServiceLocatorInterface $serviceLocator | ||
* @param ServiceLocatorInterface $serviceLocator | ||
* @return Columns | ||
*/ | ||
public function createService(ServiceLocatorInterface $serviceLocator) | ||
{ | ||
$tableRow = new Columns(); | ||
if($serviceLocator->has('translator')){ | ||
if ($serviceLocator->has('translator')) { | ||
/** @noinspection PhpParamsInspection */ | ||
$tableRow->setTranslator($serviceLocator->get('translator')); | ||
} | ||
|
||
return $tableRow; | ||
} | ||
|
||
} | ||
} |