[icinga-checkins] icinga.org: icingaweb2-module-director/master: IcingaObjectAssignmentTable : remove obsolete table

git at icinga.org git at icinga.org
Thu Jun 16 15:09:52 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: 7038987966c605c622b0dc56a311f2820aa1ca1a
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=7038987966c605c622b0dc56a311f2820aa1ca1a

Author: Thomas Gelf <thomas at gelf.net>
Date:   Thu Jun 16 14:51:07 2016 +0200

IcingaObjectAssignmentTable: remove obsolete table

---

 application/tables/IcingaObjectAssignmentTable.php |   60 --------------------
 1 file changed, 60 deletions(-)

diff --git a/application/tables/IcingaObjectAssignmentTable.php b/application/tables/IcingaObjectAssignmentTable.php
deleted file mode 100644
index 139808b..0000000
--- a/application/tables/IcingaObjectAssignmentTable.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-namespace Icinga\Module\Director\Tables;
-
-use Icinga\Module\Director\Objects\IcingaObject;
-use Icinga\Module\Director\Web\Table\QuickTable;
-use Icinga\Web\Url;
-
-// TODO: we need different ones
-class IcingaObjectAssignmentTable extends QuickTable
-{
-    protected $object;
-
-    public function setObject(IcingaObject $object)
-    {
-        $this->object = $object;
-        $this->setConnection($object->getConnection());
-        return $this;
-    }
-
-    protected $searchColumns = array(
-        'filter',
-    );
-
-    public function getColumns()
-    {
-        return array(
-            'id'            => 'oa.id',
-            'filter_string' => 'oa.filter_string',
-        );
-    }
-
-    protected function getActionUrl($row)
-    {
-        return Url::fromRequest()->with('rule_id', $row->id);
-    }
-
-    public function getTitles()
-    {
-        $view = $this->view();
-        return array(
-            'filter_string' => $view->translate('Filter string'),
-        );
-    }
-
-    public function getBaseQuery()
-    {
-        $db = $this->connection()->getConnection();
-        $otable = $this->object->getTableName() . '_assignment';
-        $oname  = $this->object->getShortTableName();
-
-        $query = $db->select()->from(
-            array('oa' => $otable),
-            array()
-        )->where('oa.' . $oname . '_id = ?', $this->object->id)
-         ->order('oa.filter_string ASC');
-
-        return $query;
-    }
-}



More information about the icinga-checkins mailing list