From 04fdd965c4aaf54942237628e2c0f6074ea583a2 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 11 Dec 2014 13:43:15 -0500 Subject: [PATCH] Remove unused legacy report list --- CRM/Report/Page/List.php | 88 ------------------------------ templates/CRM/Report/Page/List.tpl | 80 --------------------------- 2 files changed, 168 deletions(-) delete mode 100644 CRM/Report/Page/List.php delete mode 100644 templates/CRM/Report/Page/List.tpl diff --git a/CRM/Report/Page/List.php b/CRM/Report/Page/List.php deleted file mode 100644 index 854fa50644..0000000000 --- a/CRM/Report/Page/List.php +++ /dev/null @@ -1,88 +0,0 @@ -fetch()) { - $url = 'civicrm/report/'; - $rows[$dao->component_name][$dao->value]['title'] = $dao->label; - $rows[$dao->component_name][$dao->value]['description'] = $dao->description; - $rows[$dao->component_name][$dao->value]['url'] = CRM_Utils_System::url('civicrm/report/' . trim($dao->value, '/'), 'reset=1'); - if ($dao->instance_id) { - $rows[$dao->component_name][$dao->value]['instanceUrl'] = CRM_Utils_System::url('civicrm/report/instance/list', - "reset=1&ovid={$dao->id}" - ); - } - } - - return $rows; - } - - /** - * Run this page (figure out the action needed and perform it). - * - * @return void - */ - function run() { - $rows = self::info(); - $this->assign('list', $rows); - - return parent::run(); - } -} - diff --git a/templates/CRM/Report/Page/List.tpl b/templates/CRM/Report/Page/List.tpl deleted file mode 100644 index d2650a1b26..0000000000 --- a/templates/CRM/Report/Page/List.tpl +++ /dev/null @@ -1,80 +0,0 @@ -{* - +--------------------------------------------------------------------+ - | CiviCRM version 4.5 | - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | - +--------------------------------------------------------------------+ - | This file is a part of CiviCRM. | - | | - | CiviCRM is free software; you can copy, modify, and distribute it | - | under the terms of the GNU Affero General Public License | - | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | - | | - | CiviCRM is distributed in the hope that it will be useful, but | - | WITHOUT ANY WARRANTY; without even the implied warranty of | - | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | - | See the GNU Affero General Public License for more details. | - | | - | You should have received a copy of the GNU Affero General Public | - | License and the CiviCRM Licensing Exception along | - | with this program; if not, contact CiviCRM LLC | - | at info[AT]civicrm[DOT]org. If you have questions about the | - | GNU Affero General Public License or the licensing of CiviCRM, | - | see the CiviCRM license FAQ at http://civicrm.org/licensing | - +--------------------------------------------------------------------+ -*} -{strip} -
- {ts}Template List{/ts} - {if $list} - {foreach from=$list item=rows key=report} -
-
- - - - -
{if $report}{$report}{else}Contact{/if} Reports
-
- - {/foreach} - {else} -
-
  {ts}There are currently no Reports.{/ts} -
- {/if} -
-{/strip} -{literal} - -{/literal} -- 2.25.1