From c0422d70122ed1cc2d7f7029f3dfae7aa2978c2e Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 28 Feb 2016 17:01:10 +0100 Subject: [PATCH] GeneratedConfigTable: remove obsolete table refs #11054 --- application/tables/GeneratedConfigTable.php | 60 --------------------- 1 file changed, 60 deletions(-) delete mode 100644 application/tables/GeneratedConfigTable.php diff --git a/application/tables/GeneratedConfigTable.php b/application/tables/GeneratedConfigTable.php deleted file mode 100644 index a23793b5..00000000 --- a/application/tables/GeneratedConfigTable.php +++ /dev/null @@ -1,60 +0,0 @@ - 'LOWER(HEX(c.checksum))', - 'duration' => "c.duration || 'ms'", - 'files' => 'COUNT(cf.file_checksum)', - 'last_related_change' => 'l.change_time', - 'activity_log_id' => 'l.id' - ); - - if ($this->connection->getDbType() === 'pgsql') { - $columns['checksum'] = "LOWER(ENCODE(c.checksum, 'hex'))"; - } - - return $columns; - } - - protected function getActionUrl($row) - { - return $this->url('director/config/show', array('checksum' => $row->checksum)); - } - - public function getTitles() - { - $view = $this->view(); - return array( - 'checksum' => $view->translate('Checksum'), - 'duration' => $view->translate('Duration'), - 'last_related_change' => $view->translate('Last related change'), - ); - } - - public function getBaseQuery() - { - $db = $this->connection()->getConnection(); - - $query = $db->select()->from( - array('l' => 'director_activity_log'), - array() - )->joinRight( - array('c' => 'director_generated_config'), - 'c.last_activity_checksum = l.checksum', - array() - )->joinLeft( - array('cf' => 'director_generated_config_file'), - 'cf.config_checksum = c.checksum', - array() - )->group('c.checksum')->group('l.id')->order('l.change_time DESC'); - - return $query; - } -}