Public Member Functions | |
getCollection () | |
getCondition () | |
Protected Member Functions | |
_getOptions () | |
Protected Attributes | |
$_websiteCollection = null |
Definition at line 34 of file Website.php.
_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 }
$_websiteCollection = null [protected] |
Definition at line 37 of file Website.php.