getUrl('*/varnishCache/clean'); } /** * Check if block can be displayed * * @return bool */ public function canShowButton() { return Mage::helper('varnishcache')->isEnabled(); } /** * Get store selection * * @return string */ public function getStoreOptions() { $options = array(array('value' => '', 'label' => Mage::helper('varnishcache')->__('All stores'))); $stores = Mage::getModel('adminhtml/system_config_source_store')->toOptionArray(); return array_merge($options, $stores); } /** * Get content types */ public function getContentTypeOptions() { $options = array(array('value' => '', 'label' => Mage::helper('varnishcache')->__('All content types'))); foreach (Mage::getModel('varnishcache/control')->getContentTypes() as $value => $label) { $options[] = array('value' => $value, 'label' => $label); } return $options; } }