/** * Returns all the column names of this table * * @return array */ static function &fields() { if (!self::$_fields) { self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'description' => 'Type of bounce', 'required' => true, 'maxlength' => 24, 'size' => CRM_Utils_Type::MEDIUM), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Description'), 'description' => 'A description of this bounce type', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'hold_threshold' => array('name' => 'hold_threshold', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Hold Threshold'), 'description' => 'Number of bounces of this type required before the email address is put on bounce hold', 'required' => true)); } return self::$_fields; }
/** * returns all the column names of this table * * @access public * @return array */ static function &fields() { if (!self::$_fields) { self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Name'), 'required' => true, 'enumValues' => 'AOL, Away, DNS, Host, Inactive, Invalid, Loop, Quota, Relay, Spam, Syntax, Unknown'), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Description'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'hold_threshold' => array('name' => 'hold_threshold', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Hold Threshold'), 'required' => true)); } return self::$_fields; }