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 location types.
21 class CRM_Admin_Page_PreferencesDate
extends CRM_Core_Page_Basic
{
24 * The action links that we need to display for the browse screen.
28 public static $_links = NULL;
30 public $useLivePageJS = TRUE;
38 public function getBAOName() {
39 return 'CRM_Core_BAO_PreferencesDate';
46 * (reference) of action links
48 public function &links() {
49 if (!(self
::$_links)) {
51 CRM_Core_Action
::UPDATE
=> [
53 'url' => 'civicrm/admin/setting/preferences/date',
54 'qs' => 'action=update&id=%%id%%&reset=1',
55 'title' => ts('Edit Date Type'),
65 * This method is called after the page is created. It checks for the
66 * type of action and executes that action.
67 * Finally it calls the parent's run method.
69 public function run() {
70 // set title and breadcrumb
71 CRM_Utils_System
::setTitle(ts('Settings - Date Preferences'));
76 * Get name of edit form.
79 * Classname of edit form.
81 public function editForm() {
82 return 'CRM_Admin_Form_PreferencesDate';
91 public function editName() {
92 return 'Date Preferences';
103 public function userContext($mode = NULL) {
104 return 'civicrm/admin/setting/preferences/date';