Mage_Adminhtml_Block_Newsletter_Subscriber Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Newsletter_Subscriber:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getQueueCollection ()
 getShowQueueAdd ()
 getQueueAsOptions ()

Protected Member Functions

 _beforeToHtml ()

Protected Attributes

 $_queueCollection = null


Detailed Description

Definition at line 35 of file Subscriber.php.


Constructor & Destructor Documentation

__construct (  ) 

Constructor

Initializes block

Reimplemented from Varien_Object.

Definition at line 49 of file Subscriber.php.

00050     {
00051         $this->setTemplate('newsletter/subscriber/list.phtml');
00052     }


Member Function Documentation

_beforeToHtml (  )  [protected]

Prepares block to render

Returns:
Mage_Adminhtml_Block_Newsletter_Subscriber

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

Returns:
array

Definition at line 92 of file Subscriber.php.

00093     {
00094         return $this->getQueueCollection()->toOptionArray();
00095     }

getQueueCollection (  ) 

Return queue collection with loaded neversent queues

Returns:
Mage_Newsletter_Model_Mysql4_Queue_Collection

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     }


Member Data Documentation

$_queueCollection = null [protected]

Definition at line 42 of file Subscriber.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:22:51 2009 for Magento by  doxygen 1.5.8