コード例 #1
0
ファイル: Codes.php プロジェクト: guohuadeng/stampApp
 protected function _toHtml()
 {
     $period = 30;
     $codes = Mage::getResourceModel('amfpccrawler/log')->getStatusCodes($period);
     $this->setCodes($codes);
     return parent::_toHtml();
 }
コード例 #2
0
 protected function _toHtml()
 {
     if (!Mage::getStoreConfig('sales_email/order/include')) {
         return '';
     }
     return parent::_toHtml();
 }
コード例 #3
0
 protected function _toHtml()
 {
     if ($this->isEditorAllowed()) {
         return parent::_toHtml();
     }
     return '<!-- Markdown Editor Disabled. See System -> Permission -> Roles -->';
 }
コード例 #4
0
ファイル: Filters.php プロジェクト: buttasg/cowgirlk
 protected function _toHtml()
 {
     if (!$this->getIsNewGridModel() && ($gridBlock = $this->getGridBlock()) && $gridBlock->getFilterVisibility()) {
         return parent::_toHtml();
     }
     return '';
 }
コード例 #5
0
ファイル: Notifications.php プロジェクト: relue/magento2
 /**
  * ACL validation before html generation
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (Mage::getSingleton('Mage_Admin_Model_Session')->isAllowed('system/index')) {
         return parent::_toHtml();
     }
     return '';
 }
コード例 #6
0
 /**
  * ACL validation before html generation
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (Mage::getSingleton('admin/session')->isAllowed('catalog/categories')) {
         return parent::_toHtml();
     }
     return '';
 }
コード例 #7
0
ファイル: Notifications.php プロジェクト: nemphys/magento2
 /**
  * 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 '';
 }
コード例 #8
0
ファイル: Security.php プロジェクト: cewolf2002/magento
 /**
  * Prepare html output
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (!$this->_canShowNotification()) {
         return '';
     }
     return parent::_toHtml();
 }
コード例 #9
0
 protected function _toHtml()
 {
     $html = $this->_beforeToHtmlHtml();
     $html .= parent::_toHtml();
     $html .= $this->_afterToHtmlHtml();
     return $html;
 }
コード例 #10
0
ファイル: Crawled.php プロジェクト: guohuadeng/stampApp
 protected function _toHtml()
 {
     $period = 30;
     $crawled = Mage::getResourceModel('amfpccrawler/log')->getCrawledPages($period);
     $this->setCrawled($crawled);
     return parent::_toHtml();
 }
コード例 #11
0
ファイル: Time.php プロジェクト: guohuadeng/stampApp
 protected function _toHtml()
 {
     $period = 30;
     $load = Mage::getResourceModel('amfpccrawler/log')->getPageLoadTime($period);
     $this->setLoad($load);
     return parent::_toHtml();
 }
コード例 #12
0
 /**
  * Apply admin acl
  */
 protected function _toHtml()
 {
     if (!Mage::getSingleton('admin/session')->isAllowed('sales/enterprise_checkout/update')) {
         return '';
     }
     return parent::_toHtml();
 }
コード例 #13
0
ファイル: Notifications.php プロジェクト: test3metizsoft/test
 /**
  * ACL validation before html generation
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (Mage::getSingleton('admin/session')->isAllowed('system/cache')) {
         return parent::_toHtml();
     }
     return '';
 }
コード例 #14
0
ファイル: Notifications.php プロジェクト: natxetee/magento2
 /**
  * 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 '';
 }
コード例 #15
0
 protected function _toHtml()
 {
     if (!$this->_helper->isEnabled()) {
         return '';
     }
     return parent::_toHtml();
 }
コード例 #16
0
 protected function _toHtml()
 {
     if (!Mage::getModel('M2ePro/Accounts')->isSingleAccountMode()) {
         return parent::_toHtml();
     }
     return '';
 }
コード例 #17
0
ファイル: Config.php プロジェクト: santhosh400/ecart
 protected function _toHtml()
 {
     if ($this->_section == 'mstcore_store') {
         return parent::_toHtml();
     } else {
         return '';
     }
 }
コード例 #18
0
ファイル: Status.php プロジェクト: protechhelp/gamamba
 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();
 }
コード例 #19
0
ファイル: Single.php プロジェクト: jsiefer/emarketing
 protected function _toHtml()
 {
     $filter = $this->getFilter();
     if (!$filter instanceof Mzax_Emarketing_Model_Object_Filter_Abstract) {
         return 'NO FILTER :(';
     }
     return parent::_toHtml();
 }
コード例 #20
0
ファイル: Jsinit.php プロジェクト: xiaoguizhidao/devfashion
 /**
  * Print init JS script into body
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->_section == 'awall' || $this->_section == 'awstore') {
         return parent::_toHtml();
     } else {
         return '';
     }
 }
コード例 #21
0
ファイル: ShippingInfo.php プロジェクト: myparcelnl/magento1
 /**
  * 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();
 }
コード例 #22
0
 protected function _toHtml()
 {
     if ($this->getPayment()->getId()) {
         return Mage_Adminhtml_Block_Template::_toHtml();
     } else {
         return '';
     }
 }
コード例 #23
0
 protected function _toHtml()
 {
     $html = parent::_toHtml();
     if ($this->getOutputAsJs()) {
         $html = $this->helper('customgrid/js')->prepareHtmlForJsOutput($html, true);
     }
     return $html;
 }
コード例 #24
0
 /**
  * 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 '';
     }
 }
コード例 #25
0
 /**
  * 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 '';
     }
 }
コード例 #26
0
 /**
  * @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();
 }
コード例 #27
0
ファイル: List.php プロジェクト: blazeriaz/youguess
 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();
 }
コード例 #28
0
 /**
  * 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 '';
     }
 }
コード例 #29
0
 protected function _toHtml()
 {
     if (!$this->getPayment()) {
         return '';
     }
     if ($this->getPayment()->getMethod() != 'purchaseorder') {
         return '';
     }
     return parent::_toHtml();
 }
コード例 #30
0
 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();
 }