+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
-| Copyright CiviCRM LLC (c) 2004-2016 |
+| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*/
/**
* @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
*/
*/
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]
'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',
'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',
'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',
'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',
) ,
'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',
) ,
'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',
) ,
'headerPattern' => '',
'dataPattern' => '',
'export' => true,
+ 'table_name' => 'civicrm_tell_friend',
+ 'entity' => 'Friend',
+ 'bao' => 'CRM_Friend_BAO_Friend',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
'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',
) ,
'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',
) ,
'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',
) ,
$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;
+ }
}