a5d2737cf05c49a685b0787870a14c2321b84a29
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
19 * Page for displaying list of categories.
21 class CRM_Admin_Page_Mapping
extends CRM_Core_Page_Basic
{
23 public $useLivePageJS = TRUE;
26 * The action links that we need to display for the browse screen.
30 public static $_links = NULL;
38 public function getBAOName() {
39 return 'CRM_Core_BAO_Mapping';
46 * (reference) of action links
48 public function &links() {
49 if (!(self
::$_links)) {
50 // helper variable for nicer formatting
51 $deleteExtra = ts('Are you sure you want to delete this mapping?') . ' ' . ts('This operation cannot be undone.');
53 CRM_Core_Action
::UPDATE
=> [
55 'url' => 'civicrm/admin/mapping',
56 'qs' => 'action=update&id=%%id%%&reset=1',
57 'title' => ts('Edit Mapping'),
59 CRM_Core_Action
::DELETE
=> [
60 'name' => ts('Delete'),
61 'url' => 'civicrm/admin/mapping',
62 'qs' => 'action=delete&id=%%id%%',
63 'title' => ts('Delete Mapping'),
71 * Get name of edit form.
74 * Classname of edit form.
76 public function editForm() {
77 return 'CRM_Admin_Form_Mapping';
81 * Get form name for edit form.
86 public function editName() {
91 * Get form name for delete form.
96 public function deleteName() {
108 public function userContext($mode = NULL) {
109 return 'civicrm/admin/mapping';
113 * Get name of delete form.
116 * Classname of delete form.
118 public function deleteForm() {
119 return 'CRM_Admin_Form_Mapping';
123 * Run the basic page.
125 public function run() {
126 $sort = 'mapping_type asc';
127 return parent
::run($sort);