*/
class CRM_Admin_Form_ScheduleReminders extends CRM_Admin_Form {
- /**
- * Scheduled Reminder ID.
- * @var int
- */
- public $_id;
-
protected $_compId;
/**
$this->_compId = $compId;
}
+ /**
+ * @return string
+ */
+ public function getDefaultEntity(): string {
+ return 'ActionSchedule';
+ }
+
/**
* Build the form object.
*
}
/**
- * @return int
+ * @return array
*/
public function setDefaultValues() {
if ($this->_action & CRM_Core_Action::ADD) {
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_Core_BAO_ActionSchedule';
}
- /**
- * Get action Links.
- *
- * @return array
- * (reference) of action links
- */
- public function &links() {
- if (!(self::$_links)) {
- // helper variable for nicer formatting
- self::$_links = [
- CRM_Core_Action::UPDATE => [
- 'name' => ts('Edit'),
- 'class' => 'no-popup',
- 'url' => 'civicrm/admin/scheduleReminders',
- 'qs' => 'action=update&id=%%id%%&reset=1',
- 'title' => ts('Edit Schedule Reminders'),
- ],
- CRM_Core_Action::ENABLE => [
- 'name' => ts('Enable'),
- 'ref' => 'crm-enable-disable',
- 'title' => ts('Enable Label Format'),
- ],
- CRM_Core_Action::DISABLE => [
- 'name' => ts('Disable'),
- 'ref' => 'crm-enable-disable',
- 'title' => ts('Disable Label Format'),
- ],
- CRM_Core_Action::DELETE => [
- 'name' => ts('Delete'),
- 'url' => 'civicrm/admin/scheduleReminders',
- 'qs' => 'action=delete&id=%%id%%',
- 'title' => ts('Delete Schedule Reminders'),
- ],
- ];
- }
-
- return self::$_links;
- }
-
/**
* Get name of edit form.
*
*
* Generated from xml/schema/CRM/Core/ActionSchedule.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8098f787ce516453231c9dd5c11e2185)
+ * (GenCodeChecksum:247a35dcd0734c0cd3d00c42910cf725)
*/
/**
*/
public static $_log = FALSE;
+ /**
+ * Paths for accessing this entity in the UI.
+ *
+ * @var string[]
+ */
+ protected static $_paths = [
+ 'add' => 'civicrm/admin/scheduleReminders/edit?reset=1&action=add',
+ 'update' => 'civicrm/admin/scheduleReminders/edit?reset=1&action=update&id=[id]',
+ 'delete' => 'civicrm/admin/scheduleReminders/edit?reset=1&action=delete&id=[id]',
+ ];
+
/**
* @var int|string|null
* (SQL type: int unsigned)
<adminGroup>Communications</adminGroup>
<weight>40</weight>
</item>
+ <item>
+ <path>civicrm/admin/scheduleReminders/edit</path>
+ <title>Schedule Reminders</title>
+ <page_callback>CRM_Admin_Form_ScheduleReminders</page_callback>
+ <access_callback>1</access_callback>
+ <access_arguments>administer CiviCRM data;edit all events</access_arguments>
+ </item>
<item>
<path>civicrm/admin/weight</path>
<page_callback>CRM_Utils_Weight::fixOrder</page_callback>
</div>
{/if}
<div class="action-link">
- {assign var='link' value="civicrm/admin/scheduleReminders"}
+ {assign var='link' value="civicrm/admin/scheduleReminders/edit"}
{if !empty($component)}
{assign var='urlParams' value="action=add&context=$component&compId=$id&reset=1"}
{else}
<name>civicrm_action_schedule</name>
<comment>Table to store the reminders.</comment>
<add>3.4</add>
+ <labelField>title</labelField>
+ <paths>
+ <add>civicrm/admin/scheduleReminders/edit?reset=1&action=add</add>
+ <update>civicrm/admin/scheduleReminders/edit?reset=1&action=update&id=[id]</update>
+ <delete>civicrm/admin/scheduleReminders/edit?reset=1&action=delete&id=[id]</delete>
+ </paths>
<field>
<name>id</name>
<title>Action Schedule ID</title>