Class Mage_Newsletter_Model_Mysql4_Subscriber

Description

Newsletter subscriber model for MySQL4

Located in /Newsletter/Model/Mysql4/Subscriber.php (line 34)

Mage_Core_Model_Resource_Abstract
   |
   --Mage_Core_Model_Mysql4_Abstract
      |
      --Mage_Newsletter_Model_Mysql4_Subscriber
Variable Summary
Zend_Db_Adapter_Abstract $_read
Zend_Db_Adapter_Abstract $_write
Method Summary
array loadByCustomer ( $customer)
array loadByEmail (string $subscriberEmail)
void setMessagesScope (string $scope)
void _construct ()
Variables
string $_messagesScope = 'newsletter/session' (line 69)

Name of scope for error messages

  • access: protected
Zend_Db_Adapter_Abstract $_read (line 41)

DB read connection

  • access: protected
string $_subscriberLinkTable (line 62)

Name of subscriber link DB table

  • access: protected
string $_subscriberTable (line 55)

Name of subscriber DB table

  • access: protected
Zend_Db_Adapter_Abstract $_write (line 48)

DB write connection

  • access: protected

Inherited Variables

Inherited from Mage_Core_Model_Mysql4_Abstract

Mage_Core_Model_Mysql4_Abstract::$_connections
Mage_Core_Model_Mysql4_Abstract::$_fieldsForUpdate
Mage_Core_Model_Mysql4_Abstract::$_idFieldName
Mage_Core_Model_Mysql4_Abstract::$_isPkAutoIncrement
Mage_Core_Model_Mysql4_Abstract::$_mainTable
Mage_Core_Model_Mysql4_Abstract::$_mainTableFields
Mage_Core_Model_Mysql4_Abstract::$_resourceModel
Mage_Core_Model_Mysql4_Abstract::$_resourcePrefix
Mage_Core_Model_Mysql4_Abstract::$_resources
Mage_Core_Model_Mysql4_Abstract::$_serializableFields
Mage_Core_Model_Mysql4_Abstract::$_tables
Mage_Core_Model_Mysql4_Abstract::$_uniqueFields
Mage_Core_Model_Mysql4_Abstract::$_useIsObjectNew

Inherited from Mage_Core_Model_Resource_Abstract

Mage_Core_Model_Resource_Abstract::$_commitCallbacks
Methods
loadByCustomer (line 123)

Load subscriber by customer

  • access: public
array loadByCustomer ( $customer)
loadByEmail (line 100)

Load subscriber from DB by email

  • access: public
array loadByEmail (string $subscriberEmail)
  • string $subscriberEmail
received (line 158)
  • access: public
void received (Mage_Newsletter_Model_Subscriber $subscriber, Mage_Newsletter_Model_Queue $queue)
setMessagesScope (line 89)

Set error messages scope

  • access: public
void setMessagesScope (string $scope)
  • string $scope
_construct (line 76)

Initialize resource model

Get tablename from config

  • access: protected
void _construct ()

Redefinition of:
Mage_Core_Model_Resource_Abstract::_construct()
Resource initialization
_generateRandomCode (line 153)

Generates random code for subscription confirmation

  • access: protected
string _generateRandomCode ()

Inherited Methods

Inherited From Mage_Core_Model_Mysql4_Abstract

Mage_Core_Model_Mysql4_Abstract::addUniqueField()
Mage_Core_Model_Mysql4_Abstract::afterLoad()
Mage_Core_Model_Mysql4_Abstract::delete()
Mage_Core_Model_Mysql4_Abstract::forsedSave()
Mage_Core_Model_Mysql4_Abstract::getChecksum()
Mage_Core_Model_Mysql4_Abstract::getIdFieldName()
Mage_Core_Model_Mysql4_Abstract::getMainTable()
Mage_Core_Model_Mysql4_Abstract::getReadConnection()
Mage_Core_Model_Mysql4_Abstract::getTable()
Mage_Core_Model_Mysql4_Abstract::getUniqueFields()
Mage_Core_Model_Mysql4_Abstract::getValueTable()
Mage_Core_Model_Mysql4_Abstract::hasDataChanged()
Mage_Core_Model_Mysql4_Abstract::load()
Mage_Core_Model_Mysql4_Abstract::resetUniqueField()
Mage_Core_Model_Mysql4_Abstract::save()
Mage_Core_Model_Mysql4_Abstract::unserializeFields()
Mage_Core_Model_Mysql4_Abstract::_afterDelete()
Mage_Core_Model_Mysql4_Abstract::_afterLoad()
Mage_Core_Model_Mysql4_Abstract::_afterSave()
Mage_Core_Model_Mysql4_Abstract::_beforeDelete()
Mage_Core_Model_Mysql4_Abstract::_beforeSave()
Mage_Core_Model_Mysql4_Abstract::_checkUnique()
Mage_Core_Model_Mysql4_Abstract::_getConnection()
Mage_Core_Model_Mysql4_Abstract::_getLoadSelect()
Mage_Core_Model_Mysql4_Abstract::_getReadAdapter()
Mage_Core_Model_Mysql4_Abstract::_getWriteAdapter()
Mage_Core_Model_Mysql4_Abstract::_init()
Mage_Core_Model_Mysql4_Abstract::_initUniqueFields()
Mage_Core_Model_Mysql4_Abstract::_prepareDataForSave()
Mage_Core_Model_Mysql4_Abstract::_prepareDataForTable()
Mage_Core_Model_Mysql4_Abstract::_prepareValueForSave()
Mage_Core_Model_Mysql4_Abstract::_serializeFields()
Mage_Core_Model_Mysql4_Abstract::_setMainTable()
Mage_Core_Model_Mysql4_Abstract::_setResource()

Inherited From Mage_Core_Model_Resource_Abstract

Mage_Core_Model_Resource_Abstract::__construct()
Mage_Core_Model_Resource_Abstract::addCommitCallback()
Mage_Core_Model_Resource_Abstract::beginTransaction()
Mage_Core_Model_Resource_Abstract::commit()
Mage_Core_Model_Resource_Abstract::formatDate()
Mage_Core_Model_Resource_Abstract::mktime()
Mage_Core_Model_Resource_Abstract::rollBack()
Mage_Core_Model_Resource_Abstract::_construct()
Mage_Core_Model_Resource_Abstract::_getReadAdapter()
Mage_Core_Model_Resource_Abstract::_getWriteAdapter()
Mage_Core_Model_Resource_Abstract::_serializeField()
Mage_Core_Model_Resource_Abstract::_unserializeField()
Class Constants

Documentation generated on Fri, 11 Feb 2011 17:13:37 +0200 by phpDocumentor 1.4.3