Public Member Functions | |
__construct () | |
useOnlyActual () | |
toOptionArray () | |
Protected Attributes | |
$_templateTable |
Definition at line 34 of file Collection.php.
__construct | ( | ) |
Reimplemented from Varien_Data_Collection.
Definition at line 43 of file Collection.php.
00044 { 00045 parent::__construct(Mage::getSingleton('core/resource')->getConnection('newsletter_read')); 00046 $this->_templateTable = Mage::getSingleton('core/resource')->getTableName('newsletter/template'); 00047 $this->_select->from($this->_templateTable, array('template_id','template_code', 00048 'template_type', 00049 'template_subject','template_sender_name', 00050 'template_sender_email', 00051 'added_at', 00052 'modified_at' 00053 )); 00054 $this->setItemObjectClass(Mage::getConfig()->getModelClassName('newsletter/template')); 00055 }
toOptionArray | ( | ) |
Reimplemented from Varien_Data_Collection.
Definition at line 69 of file Collection.php.
00070 { 00071 return $this->_toOptionArray('template_id', 'template_code'); 00072 }
useOnlyActual | ( | ) |
$_templateTable [protected] |
Definition at line 41 of file Collection.php.