Public Member Functions | |
__construct () | |
getQueueCollection () | |
getShowQueueAdd () | |
getQueueAsOptions () | |
Protected Member Functions | |
_beforeToHtml () | |
Protected Attributes | |
$_queueCollection = null |
Definition at line 35 of file Subscriber.php.
__construct | ( | ) |
Constructor
Initializes block
Reimplemented from Varien_Object.
Definition at line 49 of file Subscriber.php.
_beforeToHtml | ( | ) | [protected] |
Prepares block to render
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 59 of file Subscriber.php.
00060 { 00061 $this->setChild('grid', $this->getLayout()->createBlock('adminhtml/newsletter_subscriber_grid','grid')); 00062 return parent::_beforeToHtml(); 00063 }
getQueueAsOptions | ( | ) |
Return list of neversent queues for select
Definition at line 92 of file Subscriber.php.
00093 { 00094 return $this->getQueueCollection()->toOptionArray(); 00095 }
getQueueCollection | ( | ) |
Return queue collection with loaded neversent queues
Definition at line 70 of file Subscriber.php.
00071 { 00072 if(is_null($this->_queueCollection)) { 00073 $this->_queueCollection = Mage::getResourceSingleton('newsletter/queue_collection') 00074 ->addTemplateInfo() 00075 ->addOnlyUnsentFilter() 00076 ->load(); 00077 } 00078 00079 return $this->_queueCollection; 00080 }
getShowQueueAdd | ( | ) |
Definition at line 82 of file Subscriber.php.
00083 { 00084 return $this->getChild('grid')->getShowQueueAdd(); 00085 }
$_queueCollection = null [protected] |
Definition at line 42 of file Subscriber.php.