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 list page badges.
21 class CRM_Badge_Page_Layout
extends CRM_Core_Page_Basic
{
24 * The action links that we need to display for the browse screen.
28 public static $_links = NULL;
36 public function getBAOName() {
37 return 'CRM_Badge_BAO_Layout';
44 * (reference) of action links
46 public function &links() {
47 if (!(self
::$_links)) {
49 CRM_Core_Action
::UPDATE
=> [
51 'url' => 'civicrm/admin/badgelayout',
52 'qs' => 'action=update&id=%%id%%&reset=1',
53 'title' => ts('Edit Badge Layout'),
55 CRM_Core_Action
::DISABLE
=> [
56 'name' => ts('Disable'),
57 'ref' => 'crm-enable-disable',
58 'title' => ts('Disable Badge Layout'),
60 CRM_Core_Action
::ENABLE
=> [
61 'name' => ts('Enable'),
62 'ref' => 'crm-enable-disable',
63 'title' => ts('Enable Badge Layout'),
65 CRM_Core_Action
::DELETE
=> [
66 'name' => ts('Delete'),
67 'url' => 'civicrm/admin/badgelayout',
68 'qs' => 'action=delete&id=%%id%%',
69 'title' => ts('Delete Badge Layout'),
77 * Get name of edit form.
80 * Classname of edit form.
82 public function editForm() {
83 return 'CRM_Badge_Form_Layout';
92 public function editName() {
93 return 'Badge Layout';
104 public function userContext($mode = NULL) {
105 return 'civicrm/admin/badgelayout';