mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
ipl: code cleanup
This commit is contained in:
parent
30c6bf1b95
commit
be0d41459f
@ -10,8 +10,6 @@ class SimpleQueryPaginationAdapter implements Paginatable
|
|||||||
/** @var SimpleQuery */
|
/** @var SimpleQuery */
|
||||||
private $query;
|
private $query;
|
||||||
|
|
||||||
private $countQuery;
|
|
||||||
|
|
||||||
public function __construct(SimpleQuery $query)
|
public function __construct(SimpleQuery $query)
|
||||||
{
|
{
|
||||||
$this->query = $query;
|
$this->query = $query;
|
||||||
|
4
library/vendor/ipl/Html/FormattedString.php
vendored
4
library/vendor/ipl/Html/FormattedString.php
vendored
@ -24,7 +24,9 @@ class FormattedString implements ValidHtml
|
|||||||
public static function create($string)
|
public static function create($string)
|
||||||
{
|
{
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
return new static(array_shift($args), $args);
|
array_shift($args);
|
||||||
|
|
||||||
|
return new static($string, $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render()
|
||||||
|
@ -31,7 +31,7 @@ trait ZfSortablePriority
|
|||||||
|
|
||||||
if ($request->isPost() && $this->hasBeenSent($request)) {
|
if ($request->isPost() && $this->hasBeenSent($request)) {
|
||||||
// $this->fixPriorities();
|
// $this->fixPriorities();
|
||||||
foreach ($request->getPost() as $key => $value) {
|
foreach (array_keys($request->getPost()) as $key) {
|
||||||
if (substr($key, 0, 8) === 'MOVE_UP_') {
|
if (substr($key, 0, 8) === 'MOVE_UP_') {
|
||||||
$id = (int) substr($key, 8);
|
$id = (int) substr($key, 8);
|
||||||
$this->moveRow($id, 'up');
|
$this->moveRow($id, 'up');
|
||||||
|
@ -5,7 +5,6 @@ namespace dipl\Web\Table;
|
|||||||
use Countable;
|
use Countable;
|
||||||
use Icinga\Application\Benchmark;
|
use Icinga\Application\Benchmark;
|
||||||
use Icinga\Data\Filter\Filter;
|
use Icinga\Data\Filter\Filter;
|
||||||
use Icinga\Exception\ProgrammingError;
|
|
||||||
use dipl\Data\Paginatable;
|
use dipl\Data\Paginatable;
|
||||||
use dipl\Db\Zf1\FilterRenderer;
|
use dipl\Db\Zf1\FilterRenderer;
|
||||||
use dipl\Html\Table;
|
use dipl\Html\Table;
|
||||||
@ -29,12 +28,8 @@ abstract class QueryBasedTable extends Table implements Countable
|
|||||||
|
|
||||||
private $firstRow;
|
private $firstRow;
|
||||||
|
|
||||||
private $firstRowOnPage;
|
|
||||||
|
|
||||||
private $lastRow = false;
|
private $lastRow = false;
|
||||||
|
|
||||||
private $lastRowOnPage = false;
|
|
||||||
|
|
||||||
private $rowNumber;
|
private $rowNumber;
|
||||||
|
|
||||||
private $rowNumberOnPage;
|
private $rowNumberOnPage;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user