X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FMailing%2FDAO%2FBouncePattern.php;h=4901666ccabc7fda5def28e117a3b337bbe4aeb3;hb=9a4de61d4577612a1558b7e8e928cf6a641ef576;hp=d1bd4a65bdc048c31c277b97b4a2011400f36563;hpb=151c31252ae8e92f86f08ecff4716b1d009dca2d;p=civicrm-core.git diff --git a/CRM/Mailing/DAO/BouncePattern.php b/CRM/Mailing/DAO/BouncePattern.php index d1bd4a65bd..4901666cca 100644 --- a/CRM/Mailing/DAO/BouncePattern.php +++ b/CRM/Mailing/DAO/BouncePattern.php @@ -30,20 +30,22 @@ * * 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 */ @@ -66,16 +68,14 @@ class CRM_Mailing_DAO_BouncePattern extends CRM_Core_DAO { */ 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] @@ -101,6 +101,10 @@ class CRM_Mailing_DAO_BouncePattern extends CRM_Core_DAO { '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', @@ -108,6 +112,10 @@ class CRM_Mailing_DAO_BouncePattern extends CRM_Core_DAO { '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( @@ -117,6 +125,10 @@ class CRM_Mailing_DAO_BouncePattern extends CRM_Core_DAO { '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']); @@ -173,4 +185,11 @@ class CRM_Mailing_DAO_BouncePattern extends CRM_Core_DAO { $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; + } }