X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FDAO%2FMessageTemplate.php;h=a124c9d467c388088bf7774c6d80b4ffcfc951b4;hb=aa57f87a534f5796bcc2334b9aef86b075e7978c;hp=e44de41b2f54d9f4f7b31b137c29c0f42f6bbb1f;hpb=9e15f0d79fce2339e49aa6ecbe2d1a9215c76a4f;p=civicrm-core.git diff --git a/CRM/Core/DAO/MessageTemplate.php b/CRM/Core/DAO/MessageTemplate.php index e44de41b2f..a124c9d467 100644 --- a/CRM/Core/DAO/MessageTemplate.php +++ b/CRM/Core/DAO/MessageTemplate.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/MessageTemplate.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:8e8480f41073e41a72f3d600e5776d0d) + * (GenCodeChecksum:a2e8de0828f836d42d4dcce19200ab27) */ /** @@ -33,80 +33,104 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO { /** * Message Template ID * - * @var int + * @var int|string|null + * (SQL type: int unsigned) + * Note that values will be retrieved from the database as a string. */ public $id; /** * Descriptive title of message * - * @var string + * @var string|null + * (SQL type: varchar(255)) + * Note that values will be retrieved from the database as a string. */ public $msg_title; /** * Subject for email message. * - * @var text + * @var string|null + * (SQL type: text) + * Note that values will be retrieved from the database as a string. */ public $msg_subject; /** * Text formatted message * - * @var longtext + * @var string|null + * (SQL type: longtext) + * Note that values will be retrieved from the database as a string. */ public $msg_text; /** * HTML formatted message * - * @var longtext + * @var string|null + * (SQL type: longtext) + * Note that values will be retrieved from the database as a string. */ public $msg_html; /** - * @var bool + * @var bool|string + * (SQL type: tinyint) + * Note that values will be retrieved from the database as a string. */ public $is_active; /** * a pseudo-FK to civicrm_option_value * - * @var int + * @var int|string|null + * (SQL type: int unsigned) + * Note that values will be retrieved from the database as a string. */ public $workflow_id; /** - * @var string + * @var string|null + * (SQL type: varchar(255)) + * Note that values will be retrieved from the database as a string. */ public $workflow_name; /** * is this the default message template for the workflow referenced by workflow_id? * - * @var bool + * @var bool|string + * (SQL type: tinyint) + * Note that values will be retrieved from the database as a string. */ public $is_default; /** * is this the reserved message template which we ship for the workflow referenced by workflow_id? * - * @var bool + * @var bool|string + * (SQL type: tinyint) + * Note that values will be retrieved from the database as a string. */ public $is_reserved; /** * Is this message template used for sms? * - * @var bool + * @var bool|string + * (SQL type: tinyint) + * Note that values will be retrieved from the database as a string. */ public $is_sms; /** * a pseudo-FK to civicrm_option_value containing PDF Page Format. * - * @var int + * @var int|string|null + * (SQL type: int unsigned) + * Note that values will be retrieved from the database as a string. */ public $pdf_format_id; @@ -213,6 +237,7 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO { 'name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Active'), + 'required' => TRUE, 'where' => 'civicrm_msg_template.is_active', 'default' => '1', 'table_name' => 'civicrm_msg_template', @@ -251,6 +276,7 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Message Template Is Default?'), 'description' => ts('is this the default message template for the workflow referenced by workflow_id?'), + 'required' => TRUE, 'where' => 'civicrm_msg_template.is_default', 'default' => '1', 'table_name' => 'civicrm_msg_template', @@ -264,6 +290,7 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Message Template Is Reserved?'), 'description' => ts('is this the reserved message template which we ship for the workflow referenced by workflow_id?'), + 'required' => TRUE, 'where' => 'civicrm_msg_template.is_reserved', 'default' => '0', 'table_name' => 'civicrm_msg_template', @@ -277,6 +304,7 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Message Template is used for SMS?'), 'description' => ts('Is this message template used for sms?'), + 'required' => TRUE, 'where' => 'civicrm_msg_template.is_sms', 'default' => '0', 'table_name' => 'civicrm_msg_template',