*
* Generated from xml/schema/CRM/Mailing/BouncePattern.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:69f9b6d9935a5baf3e24bcd743104ce5)
+ * (GenCodeChecksum:d913b0da4c5cbb03a7d23cc28e3d4dcd)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
+/**
+ * CRM_Mailing_DAO_BouncePattern constructor.
+ */
class CRM_Mailing_DAO_BouncePattern extends CRM_Core_DAO {
/**
- * static instance to hold the table name
+ * Static instance to hold the table name.
*
* @var string
*/
static $_tableName = 'civicrm_mailing_bounce_pattern';
/**
- * 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 $pattern;
/**
- * class constructor
- *
- * @return civicrm_mailing_bounce_pattern
+ * Class constructor.
*/
function __construct() {
$this->__table = 'civicrm_mailing_bounce_pattern';
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('Bounce Pattern ID') ,
'required' => true,
+ 'table_name' => 'civicrm_mailing_bounce_pattern',
+ 'entity' => 'BouncePattern',
+ 'bao' => 'CRM_Mailing_BAO_BouncePattern',
+ 'localizable' => 0,
) ,
'bounce_type_id' => array(
'name' => 'bounce_type_id',
'title' => ts('Bounce Type') ,
'description' => 'Type of bounce',
'required' => true,
+ 'table_name' => 'civicrm_mailing_bounce_pattern',
+ 'entity' => 'BouncePattern',
+ 'bao' => 'CRM_Mailing_BAO_BouncePattern',
+ 'localizable' => 0,
'FKClassName' => 'CRM_Mailing_DAO_BounceType',
) ,
'pattern' => array(
'description' => 'A regexp to match a message to a bounce type',
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'table_name' => 'civicrm_mailing_bounce_pattern',
+ 'entity' => 'BouncePattern',
+ 'bao' => 'CRM_Mailing_BAO_BouncePattern',
+ 'localizable' => 0,
) ,
);
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
$r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_bounce_pattern', $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;
+ }
}