diff --git a/application/tables/IcingaObjectAssignmentTable.php b/application/tables/IcingaObjectAssignmentTable.php deleted file mode 100644 index 139808b5..00000000 --- a/application/tables/IcingaObjectAssignmentTable.php +++ /dev/null @@ -1,60 +0,0 @@ -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; - } -}