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 relationship types.
21 class CRM_Admin_Page_RelationshipType
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_Contact_BAO_RelationshipType';
46 * (reference) of action links
48 public function &links() {
49 if (!(self
::$_links)) {
51 CRM_Core_Action
::VIEW
=> [
53 'url' => 'civicrm/admin/reltype',
54 'qs' => 'action=view&id=%%id%%&reset=1',
55 'title' => ts('View Relationship Type'),
57 CRM_Core_Action
::UPDATE
=> [
59 'url' => 'civicrm/admin/reltype',
60 'qs' => 'action=update&id=%%id%%&reset=1',
61 'title' => ts('Edit Relationship Type'),
63 CRM_Core_Action
::DISABLE
=> [
64 'name' => ts('Disable'),
65 'ref' => 'crm-enable-disable',
66 'title' => ts('Disable Relationship Type'),
68 CRM_Core_Action
::ENABLE
=> [
69 'name' => ts('Enable'),
70 'ref' => 'crm-enable-disable',
71 'title' => ts('Enable Relationship Type'),
73 CRM_Core_Action
::DELETE
=> [
74 'name' => ts('Delete'),
75 'url' => 'civicrm/admin/reltype',
76 'qs' => 'action=delete&id=%%id%%',
77 'title' => ts('Delete Reletionship Type'),
85 * Get name of edit form.
88 * Classname of edit form.
90 public function editForm() {
91 return 'CRM_Admin_Form_RelationshipType';
100 public function editName() {
101 return 'Relationship Types';
112 public function userContext($mode = NULL) {
113 return 'civicrm/admin/reltype';