<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
*/
class CRM_Admin_Page_Mapping extends CRM_Core_Page_Basic {
+ public $useLivePageJS = TRUE;
+
/**
* The action links that we need to display for the browse screen
*
* @var array
- * @static
*/
static $_links = NULL;
/**
* Get BAO
*
- * @return string Classname of BAO.
+ * @return string
+ * Classname of BAO.
*/
- function getBAOName() {
+ public function getBAOName() {
return 'CRM_Core_BAO_Mapping';
}
/**
* Get action Links
*
- * @return array (reference) of action links
+ * @return array
+ * (reference) of action links
*/
- function &links() {
+ public function &links() {
if (!(self::$_links)) {
// helper variable for nicer formatting
$deleteExtra = ts('Are you sure you want to delete this mapping?') . ' ' . ts('This operation cannot be undone.');
/**
* Get name of edit form
*
- * @return string Classname of edit form.
+ * @return string
+ * Classname of edit form.
*/
- function editForm() {
+ public function editForm() {
return 'CRM_Admin_Form_Mapping';
}
/**
* Get form name for edit form
*
- * @return string name of this page.
+ * @return string
+ * name of this page.
*/
- function editName() {
+ public function editName() {
return 'Mapping';
}
/**
* Get form name for delete form
*
- * @return string name of this page.
+ * @return string
+ * name of this page.
*/
- function deleteName() {
+ public function deleteName() {
return 'Mapping';
}
/**
* Get user context.
*
- * @return string user context.
+ * @param null $mode
+ *
+ * @return string
+ * user context.
*/
- function userContext($mode = NULL) {
+ public function userContext($mode = NULL) {
return 'civicrm/admin/mapping';
}
/**
* Get name of delete form
*
- * @return string Classname of delete form.
+ * @return string
+ * Classname of delete form.
*/
- function deleteForm() {
+ public function deleteForm() {
return 'CRM_Admin_Form_Mapping';
}
*
* @return void
*/
- function run() {
+ public function run() {
$sort = 'mapping_type asc';
return parent::run($sort);
}
}
-