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 to display / edit the header / footer of a mailing
22 class CRM_Mailing_Page_Component
extends CRM_Core_Page_Basic
{
25 * The action links that we need to display for the browse screen.
29 public static $_links = NULL;
37 public function getBAOName() {
38 return 'CRM_Mailing_BAO_MailingComponent';
45 * (reference) of action links
47 public function &links() {
48 if (!(self
::$_links)) {
50 CRM_Core_Action
::UPDATE
=> [
52 'url' => CRM_Utils_System
::currentPath(),
53 'qs' => 'action=update&id=%%id%%',
54 'title' => ts('Edit Mailing Component'),
56 CRM_Core_Action
::DISABLE
=> [
57 'name' => ts('Disable'),
58 'ref' => 'crm-enable-disable',
59 'title' => ts('Disable Mailing Component'),
61 CRM_Core_Action
::ENABLE
=> [
62 'name' => ts('Enable'),
63 'ref' => 'crm-enable-disable',
64 'title' => ts('Enable Mailing Component'),
72 * Get name of edit form.
75 * Classname of edit form.
77 public function editForm() {
78 return 'CRM_Mailing_Form_Component';
87 public function editName() {
88 return 'Mailing Components';
99 public function userContext($mode = NULL) {
100 return CRM_Utils_System
::currentPath();
105 * @param null $pageArgs
108 public function run($args = NULL, $pageArgs = NULL, $sort = NULL) {
109 return parent
::run($args, $pageArgs, "component_type, is_default desc, name");