Mage_Adminhtml_Block_Newsletter_Subscriber_Grid_Filter_Website Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Newsletter_Subscriber_Grid_Filter_Website:

Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Select Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Abstract Mage_Adminhtml_Block_Abstract Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Interface Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getCollection ()
 getCondition ()

Protected Member Functions

 _getOptions ()

Protected Attributes

 $_websiteCollection = null


Detailed Description

Definition at line 34 of file Website.php.


Member Function Documentation

_getOptions (  )  [protected]

Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Select.

Definition at line 39 of file Website.php.

00040     {
00041         $result = $this->getCollection()->toOptionArray();
00042         array_unshift($result, array('label'=>null, 'value'=>null));
00043         return $result;
00044     }

getCollection (  ) 

Definition at line 46 of file Website.php.

00047     {
00048         if(is_null($this->_websiteCollection)) {
00049             $this->_websiteCollection = Mage::getResourceModel('core/website_collection')
00050                 ->load();
00051         }
00052 
00053         Mage::register('website_collection', $this->_websiteCollection);
00054 
00055         return $this->_websiteCollection;
00056     }

getCondition (  ) 

Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Select.

Definition at line 58 of file Website.php.

00059     {
00060 
00061         $id = $this->getValue();
00062         if(!$id) {
00063             return null;
00064         }
00065 
00066         $website = Mage::app()->getWebsite($id);
00067 
00068         return array('in'=>$website->getStoresIds(true));
00069     }


Member Data Documentation

$_websiteCollection = null [protected]

Definition at line 37 of file Website.php.


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

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