Use standard names from CRM_Core_Action for entity paths and add a few more paths
[civicrm-core.git] / CRM / Mailing / DAO / Mailing.php
index e89653ee93180a84d4e0a33f91a3e66d3ed42c42..392012f8453f59ddab5ef5e61b9a075aa589945b 100644 (file)
@@ -6,13 +6,15 @@
  *
  * Generated from xml/schema/CRM/Mailing/Mailing.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:bfcc85d4eb2bab05f214dd946e5fdef6)
+ * (GenCodeChecksum:f1ac9d0a02ed59171d4efdc4209a376c)
  */
 
 /**
  * Database access object for the Mailing entity.
  */
 class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
+  const EXT = 'civicrm';
+  const TABLE_ADDED = '';
 
   /**
    * Static instance to hold the table name.
@@ -35,6 +37,16 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
    */
   public static $_log = FALSE;
 
+  /**
+   * Paths for accessing this entity in the UI.
+   *
+   * @var string[]
+   */
+  protected static $_paths = [
+    'add' => 'civicrm/a/#/mailing/new',
+    'update' => 'civicrm/a/#/mailing/[id]',
+  ];
+
   /**
    * @var int
    */
@@ -340,9 +352,12 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Mailings');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Mailings') : ts('Mailing');
   }
 
   /**