X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FFriend%2FDAO%2FFriend.php;h=186a78673fec47170a72b3a9424b5168a4aebfb4;hb=e7a6b91ae4e3004b2d097ed318524d2ea7cf3fb0;hp=94b1f249f9a3af5a6b3fb917e66eec1a17eac619;hpb=463f73bb980ff65f0aac059424804519cc8f5ef9;p=civicrm-core.git diff --git a/CRM/Friend/DAO/Friend.php b/CRM/Friend/DAO/Friend.php index 94b1f249f9..186a78673f 100644 --- a/CRM/Friend/DAO/Friend.php +++ b/CRM/Friend/DAO/Friend.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ -| Copyright CiviCRM LLC (c) 2004-2016 | +| Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -26,24 +26,26 @@ */ /** * @package CRM - * @copyright CiviCRM LLC (c) 2004-2016 + * @copyright CiviCRM LLC (c) 2004-2017 * * Generated from xml/schema/CRM/Friend/Friend.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:62111759b7ebef1f78bd30c04c2086ba) + * (GenCodeChecksum:0f2c6f4aab46e551d1e3ec7fdd55f0f5) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; +/** + * CRM_Friend_DAO_Friend constructor. + */ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { /** - * static instance to hold the table name + * Static instance to hold the table name. * * @var string */ static $_tableName = 'civicrm_tell_friend'; /** - * static value to see if we should log any modifications to - * this table in the civicrm_log table + * Should CiviCRM log any modifications to this table in the civicrm_log table. * * @var boolean */ @@ -107,16 +109,14 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { */ public $is_active; /** - * class constructor - * - * @return civicrm_tell_friend + * Class constructor. */ function __construct() { $this->__table = 'civicrm_tell_friend'; parent::__construct(); } /** - * Returns foreign keys and entity references + * Returns foreign keys and entity references. * * @return array * [CRM_Core_Reference_Interface] @@ -143,6 +143,10 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'title' => ts('Friend ID') , 'description' => 'Friend ID', 'required' => true, + 'table_name' => 'civicrm_tell_friend', + 'entity' => 'Friend', + 'bao' => 'CRM_Friend_BAO_Friend', + 'localizable' => 0, ) , 'entity_table' => array( 'name' => 'entity_table', @@ -152,6 +156,10 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, + 'table_name' => 'civicrm_tell_friend', + 'entity' => 'Friend', + 'bao' => 'CRM_Friend_BAO_Friend', + 'localizable' => 0, ) , 'entity_id' => array( 'name' => 'entity_id', @@ -159,6 +167,10 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'title' => ts('Entity ID') , 'description' => 'Foreign key to the referenced item.', 'required' => true, + 'table_name' => 'civicrm_tell_friend', + 'entity' => 'Friend', + 'bao' => 'CRM_Friend_BAO_Friend', + 'localizable' => 0, ) , 'title' => array( 'name' => 'title', @@ -166,6 +178,10 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'title' => ts('Title') , 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, + 'table_name' => 'civicrm_tell_friend', + 'entity' => 'Friend', + 'bao' => 'CRM_Friend_BAO_Friend', + 'localizable' => 1, 'html' => array( 'type' => 'Text', ) , @@ -175,6 +191,10 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Intro') , 'description' => 'Introductory message to contributor or participant displayed on the Tell a Friend form.', + 'table_name' => 'civicrm_tell_friend', + 'entity' => 'Friend', + 'bao' => 'CRM_Friend_BAO_Friend', + 'localizable' => 1, 'html' => array( 'type' => 'Text', ) , @@ -184,6 +204,10 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Suggested Message') , 'description' => 'Suggested message to friends, provided as default on the Tell A Friend form.', + 'table_name' => 'civicrm_tell_friend', + 'entity' => 'Friend', + 'bao' => 'CRM_Friend_BAO_Friend', + 'localizable' => 1, 'html' => array( 'type' => 'Text', ) , @@ -200,6 +224,10 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'headerPattern' => '', 'dataPattern' => '', 'export' => true, + 'table_name' => 'civicrm_tell_friend', + 'entity' => 'Friend', + 'bao' => 'CRM_Friend_BAO_Friend', + 'localizable' => 0, 'html' => array( 'type' => 'Text', ) , @@ -211,6 +239,10 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'description' => 'Text for Tell a Friend thank you page header and HTML title.', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, + 'table_name' => 'civicrm_tell_friend', + 'entity' => 'Friend', + 'bao' => 'CRM_Friend_BAO_Friend', + 'localizable' => 1, 'html' => array( 'type' => 'Text', ) , @@ -220,6 +252,10 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Thank You Text') , 'description' => 'Thank you message displayed on success page.', + 'table_name' => 'civicrm_tell_friend', + 'entity' => 'Friend', + 'bao' => 'CRM_Friend_BAO_Friend', + 'localizable' => 1, 'html' => array( 'type' => 'Text', ) , @@ -228,6 +264,10 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { 'name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Enabled?') , + 'table_name' => 'civicrm_tell_friend', + 'entity' => 'Friend', + 'bao' => 'CRM_Friend_BAO_Friend', + 'localizable' => 0, 'html' => array( 'type' => 'CheckBox', ) , @@ -287,4 +327,11 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'tell_friend', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array(); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } }