X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=CRM%2FFriend%2FDAO%2FFriend.php;h=a4ce0ae147b35de91de5be0f0ac269e38d442a8e;hb=8f35ee6459208ef7f628c06d1f277dcc182e55b5;hp=c98623ee74a8b06aeff0295c78cd3f0ead198905;hpb=940762f5102cdaa3f4d0fcd95696be68d39c70e2;p=civicrm-core.git diff --git a/CRM/Friend/DAO/Friend.php b/CRM/Friend/DAO/Friend.php index c98623ee74..cd8ccf429b 100644 --- a/CRM/Friend/DAO/Friend.php +++ b/CRM/Friend/DAO/Friend.php @@ -2,11 +2,11 @@ /** * @package CRM - * @copyright CiviCRM LLC (c) 2004-2017 + * @copyright CiviCRM LLC (c) 2004-2019 * * Generated from xml/schema/CRM/Friend/Friend.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:0f2c6f4aab46e551d1e3ec7fdd55f0f5) + * (GenCodeChecksum:50ca91182b67a2ad13d5e6a525d40024) */ /** @@ -19,14 +19,14 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { * * @var string */ - static $_tableName = 'civicrm_tell_friend'; + public static $_tableName = 'civicrm_tell_friend'; /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * * @var bool */ - static $_log = FALSE; + public static $_log = FALSE; /** * Friend ID @@ -110,7 +110,7 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { */ public static function getReferenceColumns() { if (!isset(Civi::$statics[__CLASS__]['links'])) { - Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__); + Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__); Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table'); CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']); } @@ -129,8 +129,9 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Friend ID'), - 'description' => 'Friend ID', + 'description' => ts('Friend ID'), 'required' => TRUE, + 'where' => 'civicrm_tell_friend.id', 'table_name' => 'civicrm_tell_friend', 'entity' => 'Friend', 'bao' => 'CRM_Friend_BAO_Friend', @@ -140,10 +141,11 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'name' => 'entity_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Entity Table'), - 'description' => 'Name of table where item being referenced is stored.', + 'description' => ts('Name of table where item being referenced is stored.'), 'required' => TRUE, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, + 'where' => 'civicrm_tell_friend.entity_table', 'table_name' => 'civicrm_tell_friend', 'entity' => 'Friend', 'bao' => 'CRM_Friend_BAO_Friend', @@ -153,8 +155,9 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'name' => 'entity_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Entity ID'), - 'description' => 'Foreign key to the referenced item.', + 'description' => ts('Foreign key to the referenced item.'), 'required' => TRUE, + 'where' => 'civicrm_tell_friend.entity_id', 'table_name' => 'civicrm_tell_friend', 'entity' => 'Friend', 'bao' => 'CRM_Friend_BAO_Friend', @@ -166,6 +169,7 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'title' => ts('Title'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, + 'where' => 'civicrm_tell_friend.title', 'table_name' => 'civicrm_tell_friend', 'entity' => 'Friend', 'bao' => 'CRM_Friend_BAO_Friend', @@ -178,7 +182,8 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'name' => 'intro', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Intro'), - 'description' => 'Introductory message to contributor or participant displayed on the Tell a Friend form.', + 'description' => ts('Introductory message to contributor or participant displayed on the Tell a Friend form.'), + 'where' => 'civicrm_tell_friend.intro', 'table_name' => 'civicrm_tell_friend', 'entity' => 'Friend', 'bao' => 'CRM_Friend_BAO_Friend', @@ -191,7 +196,8 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'name' => 'suggested_message', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Suggested Message'), - 'description' => 'Suggested message to friends, provided as default on the Tell A Friend form.', + 'description' => ts('Suggested message to friends, provided as default on the Tell A Friend form.'), + 'where' => 'civicrm_tell_friend.suggested_message', 'table_name' => 'civicrm_tell_friend', 'entity' => 'Friend', 'bao' => 'CRM_Friend_BAO_Friend', @@ -204,13 +210,11 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'name' => 'general_link', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('General Link'), - 'description' => 'URL for general info about the organization - included in the email sent to friends.', + 'description' => ts('URL for general info about the organization - included in the email sent to friends.'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'import' => TRUE, 'where' => 'civicrm_tell_friend.general_link', - 'headerPattern' => '', - 'dataPattern' => '', 'export' => TRUE, 'table_name' => 'civicrm_tell_friend', 'entity' => 'Friend', @@ -224,9 +228,10 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'name' => 'thankyou_title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Thank You Title'), - 'description' => 'Text for Tell a Friend thank you page header and HTML title.', + 'description' => ts('Text for Tell a Friend thank you page header and HTML title.'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, + 'where' => 'civicrm_tell_friend.thankyou_title', 'table_name' => 'civicrm_tell_friend', 'entity' => 'Friend', 'bao' => 'CRM_Friend_BAO_Friend', @@ -239,7 +244,8 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'name' => 'thankyou_text', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Thank You Text'), - 'description' => 'Thank you message displayed on success page.', + 'description' => ts('Thank you message displayed on success page.'), + 'where' => 'civicrm_tell_friend.thankyou_text', 'table_name' => 'civicrm_tell_friend', 'entity' => 'Friend', 'bao' => 'CRM_Friend_BAO_Friend', @@ -252,6 +258,7 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Enabled?'), + 'where' => 'civicrm_tell_friend.is_active', 'table_name' => 'civicrm_tell_friend', 'entity' => 'Friend', 'bao' => 'CRM_Friend_BAO_Friend',