protected function _toHtml() { $period = 30; $codes = Mage::getResourceModel('amfpccrawler/log')->getStatusCodes($period); $this->setCodes($codes); return parent::_toHtml(); }
protected function _toHtml() { if (!Mage::getStoreConfig('sales_email/order/include')) { return ''; } return parent::_toHtml(); }
protected function _toHtml() { if ($this->isEditorAllowed()) { return parent::_toHtml(); } return '<!-- Markdown Editor Disabled. See System -> Permission -> Roles -->'; }
protected function _toHtml() { if (!$this->getIsNewGridModel() && ($gridBlock = $this->getGridBlock()) && $gridBlock->getFilterVisibility()) { return parent::_toHtml(); } return ''; }
/** * ACL validation before html generation * * @return string */ protected function _toHtml() { if (Mage::getSingleton('Mage_Admin_Model_Session')->isAllowed('system/index')) { return parent::_toHtml(); } return ''; }
/** * ACL validation before html generation * * @return string */ protected function _toHtml() { if (Mage::getSingleton('admin/session')->isAllowed('catalog/categories')) { return parent::_toHtml(); } return ''; }
/** * ACL validation before html generation * * @return string */ protected function _toHtml() { if (Mage::getSingleton('Mage_Core_Model_Authorization')->isAllowed('Mage_Adminhtml::cache')) { return parent::_toHtml(); } return ''; }
/** * Prepare html output * * @return string */ protected function _toHtml() { if (!$this->_canShowNotification()) { return ''; } return parent::_toHtml(); }
protected function _toHtml() { $html = $this->_beforeToHtmlHtml(); $html .= parent::_toHtml(); $html .= $this->_afterToHtmlHtml(); return $html; }
protected function _toHtml() { $period = 30; $crawled = Mage::getResourceModel('amfpccrawler/log')->getCrawledPages($period); $this->setCrawled($crawled); return parent::_toHtml(); }
protected function _toHtml() { $period = 30; $load = Mage::getResourceModel('amfpccrawler/log')->getPageLoadTime($period); $this->setLoad($load); return parent::_toHtml(); }
/** * Apply admin acl */ protected function _toHtml() { if (!Mage::getSingleton('admin/session')->isAllowed('sales/enterprise_checkout/update')) { return ''; } return parent::_toHtml(); }
/** * ACL validation before html generation * * @return string */ protected function _toHtml() { if (Mage::getSingleton('admin/session')->isAllowed('system/cache')) { return parent::_toHtml(); } return ''; }
/** * ACL validation before html generation * * @return string */ protected function _toHtml() { if (Mage::getSingleton('Mage_Core_Model_Authorization')->isAllowed('Mage_Index::index')) { return parent::_toHtml(); } return ''; }
protected function _toHtml() { if (!$this->_helper->isEnabled()) { return ''; } return parent::_toHtml(); }
protected function _toHtml() { if (!Mage::getModel('M2ePro/Accounts')->isSingleAccountMode()) { return parent::_toHtml(); } return ''; }
protected function _toHtml() { if ($this->_section == 'mstcore_store') { return parent::_toHtml(); } else { return ''; } }
protected function _toHtml() { $this->setTemplate('aw_hdu3/ticket/edit/container/thread/status/full.phtml'); if ($this->getIsShort()) { $this->setTemplate('aw_hdu3/ticket/edit/container/thread/status/short.phtml'); } return parent::_toHtml(); }
protected function _toHtml() { $filter = $this->getFilter(); if (!$filter instanceof Mzax_Emarketing_Model_Object_Filter_Abstract) { return 'NO FILTER :('; } return parent::_toHtml(); }
/** * Print init JS script into body * @return string */ protected function _toHtml() { if ($this->_section == 'awall' || $this->_section == 'awstore') { return parent::_toHtml(); } else { return ''; } }
/** * Do a few checks to see if the template should be rendered before actually rendering it. * * @return string * * @see Mage_Adminhtml_Block_Abstract::_toHtml() */ protected function _toHtml() { $helper = Mage::helper('tig_myparcel'); if (!$helper->isEnabled() || !$this->_shipment || !$helper->shippingMethodIsMyParcel($this->_shipment->getOrder()->getShippingMethod())) { return ''; } return parent::_toHtml(); }
protected function _toHtml() { if ($this->getPayment()->getId()) { return Mage_Adminhtml_Block_Template::_toHtml(); } else { return ''; } }
protected function _toHtml() { $html = parent::_toHtml(); if ($this->getOutputAsJs()) { $html = $this->helper('customgrid/js')->prepareHtmlForJsOutput($html, true); } return $html; }
/** * Print init JS script into body * @return string */ protected function _toHtml() { $section = $this->getAction()->getRequest()->getParam('section', false); if ($section == 'moneybookers') { return parent::_toHtml(); } else { return ''; } }
/** * Print init JS script into body * @return string */ protected function _toHtml() { $section = $this->getAction()->getRequest()->getParam('section', false); if ($section == 'paynovapayment') { return parent::_toHtml(); } else { return ''; } }
/** * @return string */ protected function _toHtml() { $collection = Mage::getModel('awcountdown/trigger')->getResourceCollection()->addTimerIdFilter(Mage::registry('countdown_data')->getCountdownid())->load(); if ($collection->getSize() != 0) { $this->assign('triggers', $collection); } else { $this->assign('triggers', false); } return parent::_toHtml(); }
protected function _toHtml() { if (!Mage::registry('poll_data')) { $this->assign('answers', false); return parent::_toHtml(); } $collection = Mage::getModel('poll/poll_answer')->getResourceCollection()->addPollFilter(Mage::registry('poll_data')->getId())->load(); $this->assign('answers', $collection); return parent::_toHtml(); }
/** * Print init JS script into body * @return string */ protected function _toHtml() { if ($this->_section == 'awclickcheckout') { if (Mage::helper('awall/versions')->getPlatform() != AW_All_Helper_Versions::CE_PLATFORM) { return parent::_toHtml(); } } else { return ''; } }
protected function _toHtml() { if (!$this->getPayment()) { return ''; } if ($this->getPayment()->getMethod() != 'purchaseorder') { return ''; } return parent::_toHtml(); }
public function _toHtml() { $request = Mage::app()->getRequest(); if ($request->getParam('type') == self::SYNC_TO_MAILCHIMP) { $this->setTemplate("advancednewsletter/sync/tochimp.phtml"); } else { if ($request->getParam('type') == self::SYNC_FROM_MAILCHIMP) { $this->setTemplate("advancednewsletter/sync/fromchimp.phtml"); } } return parent::_toHtml(); }