*
* Generated from xml/schema/CRM/Mailing/Recipients.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f29121ef2b9a728e3af9bc9ae45e949e)
+ * (GenCodeChecksum:c342948a9f69ec474335688029f101e0)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
+/**
+ * CRM_Mailing_DAO_Recipients constructor.
+ */
class CRM_Mailing_DAO_Recipients extends CRM_Core_DAO {
/**
- * static instance to hold the table name
+ * Static instance to hold the table name.
*
* @var string
*/
static $_tableName = 'civicrm_mailing_recipients';
/**
- * 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 $phone_id;
/**
- * class constructor
- *
- * @return civicrm_mailing_recipients
+ * Class constructor.
*/
function __construct() {
$this->__table = 'civicrm_mailing_recipients';
parent::__construct();
}
/**
- * Returns foreign keys and entity references
+ * Returns foreign keys and entity references.
*
* @return array
* [CRM_Core_Reference_Interface]
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Recipients ID') ,
'required' => true,
+ 'table_name' => 'civicrm_mailing_recipients',
+ 'entity' => 'Recipients',
+ 'bao' => 'CRM_Mailing_BAO_Recipients',
+ 'localizable' => 0,
) ,
'mailing_id' => array(
'name' => 'mailing_id',
'title' => ts('Mailing') ,
'description' => 'The ID of the mailing this Job will send.',
'required' => true,
+ 'table_name' => 'civicrm_mailing_recipients',
+ 'entity' => 'Recipients',
+ 'bao' => 'CRM_Mailing_BAO_Recipients',
+ 'localizable' => 0,
'FKClassName' => 'CRM_Mailing_DAO_Mailing',
) ,
'contact_id' => array(
'title' => ts('Mailing Recipient') ,
'description' => 'FK to Contact',
'required' => true,
+ 'table_name' => 'civicrm_mailing_recipients',
+ 'entity' => 'Recipients',
+ 'bao' => 'CRM_Mailing_BAO_Recipients',
+ 'localizable' => 0,
'FKClassName' => 'CRM_Contact_DAO_Contact',
) ,
'email_id' => array(
'title' => ts('Recipient Email') ,
'description' => 'FK to Email',
'default' => 'NULL',
+ 'table_name' => 'civicrm_mailing_recipients',
+ 'entity' => 'Recipients',
+ 'bao' => 'CRM_Mailing_BAO_Recipients',
+ 'localizable' => 0,
'FKClassName' => 'CRM_Core_DAO_Email',
) ,
'phone_id' => array(
'title' => ts('Recipient Phone') ,
'description' => 'FK to Phone',
'default' => 'NULL',
+ 'table_name' => 'civicrm_mailing_recipients',
+ 'entity' => 'Recipients',
+ 'bao' => 'CRM_Mailing_BAO_Recipients',
+ 'localizable' => 0,
'FKClassName' => 'CRM_Core_DAO_Phone',
) ,
);
$r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_recipients', $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;
+ }
}