From 10d3f7d3584be66798cce1d8d07405a9ac6ac0f0 Mon Sep 17 00:00:00 2001 From: Samuel Vanhove Date: Fri, 30 Sep 2016 13:04:24 -0400 Subject: [PATCH] CRM-16352 - genCode to reflect the add of column language in mailing table --- CRM/Core/DAO/AllCoreTables.data.php | 2 +- CRM/Mailing/DAO/Mailing.php | 24 +++++++++++++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/CRM/Core/DAO/AllCoreTables.data.php b/CRM/Core/DAO/AllCoreTables.data.php index 40635d188e..4b3e1c1fd9 100644 --- a/CRM/Core/DAO/AllCoreTables.data.php +++ b/CRM/Core/DAO/AllCoreTables.data.php @@ -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', diff --git a/CRM/Mailing/DAO/Mailing.php b/CRM/Mailing/DAO/Mailing.php index 0e657af705..b95f0eea05 100644 --- a/CRM/Mailing/DAO/Mailing.php +++ b/CRM/Mailing/DAO/Mailing.php @@ -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']); } -- 2.25.1