* @license PHP License * @package WB */ /** * Load classes */ WBClass::load(); /** * Wombat Newsletter System * * @version 1.3.0 * @package WB */ class WBDatasource_Newsletter extends WBStdClass { const TABLE_TRACKLINK = 'tracklink'; const TABLE_LINKTRACKING = 'linktracking'; const TABLE_SUBSCRIBER = 'newslettersubscriber'; const TABLE_SUBSCRIBERSOURCE = 'newslettersubscribersource'; const TABLE_SUBSCRIBERSENT = 'newslettersubscribersent'; const TABLE_NEWSLETTERTOPIC = 'newslettertopic'; const TABLE_NEWSLETTERGENERICSOURCE = 'newslettergenericsource'; const TABLE_NEWSLETTERISSUETOPIC = 'newsletterissuetopic'; const TABLE_NEWSLETTERSUBSCRIBERTOPIC = 'newslettersubscribertopic'; const TABLE_NEWSLETTERISSUE = 'newsletterissue'; const TABLE_NEWSLETTERISSUETRACKLINK = 'newsletterissuetracklink'; const TABLE_NEWSLETTERARTICLE = 'newsletterarticle'; const TABLE_NEWSLETTERISSUEARTICLE = 'newsletterissuearticle'; /* * Available newsletter subscriber send status */ const SEND_STATUS_UNKOWN = 'unknown'; const SEND_STATUS_SENT = 'sent'; const SEND_STATUS_FAILED = 'failed'; const SEND_STATUS_RETURNED = 'returned'; /** * Database Access * * @var WBDatasource_Table */ protected $table; /** * configuration * * @var WBConfig */ protected $config; /** * Constructor * * @param array */ final public function __construct($parameter = array()) { $this->table = WBClass::create('WBDatasource_Table'); $this->config = WBClass::create('WBConfig'); $this->config->load('newsletter/config'); $this->init($parameter); } /** * 2nd Constructor * * @param array */ protected function init($parameter = array()) { } }