*
* Generated from xml/schema/CRM/ACL/ACLEntityRole.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:aef394216d8ee905ec5ab98cdee3209e)
+ * (GenCodeChecksum:e66b252f62d0fa48cb74f49b3058aae5)
*/
/**
*/
public static $_log = FALSE;
+ /**
+ * Paths for accessing this entity in the UI.
+ *
+ * @var string[]
+ */
+ protected static $_paths = [
+ 'add' => 'civicrm/acl/entityrole?reset=1&action=add',
+ 'delete' => 'civicrm/acl/entityrole?reset=1&action=delete&id=[id]',
+ 'update' => 'civicrm/acl/entityrole?reset=1&action=update&id=[id]',
+ ];
+
/**
* Unique table ID
*
* Whether to return the plural version of the title.
*/
public static function getEntityTitle($plural = FALSE) {
- return $plural ? ts('ACLEntity Roles') : ts('ACLEntity Role');
+ return $plural ? ts('ACL Role Assignments') : ts('ACL Role Assignment');
}
/**
public $useLivePageJS = TRUE;
- /**
- * The action links that we need to display for the browse screen.
- *
- * @var array
- */
- public static $_links = NULL;
-
/**
* Get BAO Name.
*
return 'CRM_ACL_BAO_ACLEntityRole';
}
- /**
- * Get action Links.
- *
- * @return array
- * (reference) of action links
- */
- public function &links() {
- if (!(self::$_links)) {
- self::$_links = [
- CRM_Core_Action::UPDATE => [
- 'name' => ts('Edit'),
- 'url' => 'civicrm/acl/entityrole',
- 'qs' => 'action=update&id=%%id%%',
- 'title' => ts('Edit ACL Role Assignment'),
- ],
- CRM_Core_Action::DISABLE => [
- 'name' => ts('Disable'),
- 'ref' => 'crm-enable-disable',
- 'title' => ts('Disable ACL Role Assignment'),
- 'weight' => 40,
- ],
- CRM_Core_Action::ENABLE => [
- 'name' => ts('Enable'),
- 'ref' => 'crm-enable-disable',
- 'title' => ts('Enable ACL Role Assignment'),
- ],
- CRM_Core_Action::DELETE => [
- 'name' => ts('Delete'),
- 'url' => 'civicrm/acl/entityrole',
- 'qs' => 'action=delete&id=%%id%%',
- 'title' => ts('Delete ACL Role Assignment'),
- ],
- ];
- }
- return self::$_links;
- }
-
/**
* Run the page.
*
<name>civicrm_acl_entity_role</name>
<comment>Join table for Contacts and Groups to ACL Roles</comment>
<add>1.6</add>
+ <title>ACL Role Assignment</title>
+ <titlePlural>ACL Role Assignments</titlePlural>
+ <paths>
+ <add>civicrm/acl/entityrole?reset=1&action=add</add>
+ <delete>civicrm/acl/entityrole?reset=1&action=delete&id=[id]</delete>
+ <update>civicrm/acl/entityrole?reset=1&action=update&id=[id]</update>
+ </paths>
<field>
<name>id</name>
<type>int unsigned</type>