*
* Generated from xml/schema/CRM/Mailing/TrackableURL.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:3346d0c06632d01a12bc81b0f4313915)
+ * (GenCodeChecksum:13d0c2db9be0713818bda26731896ae6)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
+/**
+ * CRM_Mailing_DAO_TrackableURL constructor.
+ */
class CRM_Mailing_DAO_TrackableURL extends CRM_Core_DAO {
/**
- * static instance to hold the table name
+ * Static instance to hold the table name.
*
* @var string
*/
static $_tableName = 'civicrm_mailing_trackable_url';
/**
- * 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 $mailing_id;
/**
- * class constructor
- *
- * @return civicrm_mailing_trackable_url
+ * Class constructor.
*/
function __construct() {
$this->__table = 'civicrm_mailing_trackable_url';
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('Trackable URL ID') ,
'required' => true,
+ 'table_name' => 'civicrm_mailing_trackable_url',
+ 'entity' => 'TrackableURL',
+ 'bao' => 'CRM_Mailing_BAO_TrackableURL',
+ 'localizable' => 0,
) ,
'url' => array(
'name' => 'url',
'title' => ts('Url') ,
'description' => 'The URL to be tracked.',
'required' => true,
+ 'table_name' => 'civicrm_mailing_trackable_url',
+ 'entity' => 'TrackableURL',
+ 'bao' => 'CRM_Mailing_BAO_TrackableURL',
+ 'localizable' => 0,
) ,
'mailing_id' => array(
'name' => 'mailing_id',
'title' => ts('Mailing') ,
'description' => 'FK to the mailing',
'required' => true,
+ 'table_name' => 'civicrm_mailing_trackable_url',
+ 'entity' => 'TrackableURL',
+ 'bao' => 'CRM_Mailing_BAO_TrackableURL',
+ 'localizable' => 0,
'FKClassName' => 'CRM_Mailing_DAO_Mailing',
) ,
);
$r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_trackable_url', $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;
+ }
}