CRM-16352 - genCode to reflect the add of column language in mailing table
authorSamuel Vanhove <samuel@symbiotic.coop>
Fri, 30 Sep 2016 17:04:24 +0000 (13:04 -0400)
committerSamuel Vanhove <samuel@symbiotic.coop>
Thu, 6 Oct 2016 14:38:01 +0000 (10:38 -0400)
CRM/Core/DAO/AllCoreTables.data.php
CRM/Mailing/DAO/Mailing.php

index 40635d188e27fad4f61348c16a5fddbb23900af8..4b3e1c1fd91a676f66397ffc3a21363f14117c07 100644 (file)
@@ -24,7 +24,7 @@
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
 */
-// (GenCodeChecksum:4d00f1aa760a34d1c030598b09de79f9)
+// (GenCodeChecksum:e38242f457e78bdd9cc1f8fc6f18b4b1)
 return array(
   'CRM_Core_DAO_AddressFormat' => array(
     'name' => 'AddressFormat',
index 0e657af7059d984b61831364afa6bb1b46343110..b95f0eea059a33ae20415f6052554df3c212e5a4 100644 (file)
@@ -30,7 +30,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Mailing.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:5a9a6f1b3a07e96bd988ce1259736a3a)
+ * (GenCodeChecksum:2ced8fea80d92e36fe16baa7daa73c7f)
  */
 require_once 'CRM/Core/DAO.php';
 require_once 'CRM/Utils/Type.php';
@@ -279,6 +279,12 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
    * @var string
    */
   public $email_selection_method;
+  /**
+   * Language of the content of the mailing. Useful for tokens.
+   *
+   * @var string
+   */
+  public $language;
   /**
    * class constructor
    *
@@ -672,6 +678,22 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
             'callback' => 'CRM_Core_SelectValues::emailSelectMethods',
           )
         ) ,
+        'language' => array(
+          'name' => 'language',
+          'type' => CRM_Utils_Type::T_STRING,
+          'title' => ts('Mailing Language') ,
+          'description' => 'Language of the content of the mailing. Useful for tokens.',
+          'maxlength' => 5,
+          'size' => CRM_Utils_Type::SIX,
+          'html' => array(
+            'type' => 'Select',
+          ) ,
+          'pseudoconstant' => array(
+            'optionGroupName' => 'languages',
+            'keyColumn' => 'name',
+            'optionEditPath' => 'civicrm/admin/options/languages',
+          )
+        ) ,
       );
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
     }