• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Mage_Adminhtml_Block_Template类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中Mage_Adminhtml_Block_Template的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Template类的具体用法?PHP Mage_Adminhtml_Block_Template怎么用?PHP Mage_Adminhtml_Block_Template使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Mage_Adminhtml_Block_Template类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: _toHtml

 protected function _toHtml()
 {
     $period = 30;
     $crawled = Mage::getResourceModel('amfpccrawler/log')->getCrawledPages($period);
     $this->setCrawled($crawled);
     return parent::_toHtml();
 }
开发者ID:guohuadeng,项目名称:stampApp,代码行数:7,代码来源:Crawled.php


示例2: _prepareLayout

 protected function _prepareLayout()
 {
     $this->setTemplate('system/design/index.phtml');
     $this->setChild('add_new_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Add Design Change'), 'onclick' => "setLocation('" . $this->getUrl('*/*/new') . "')", 'class' => 'add')));
     $this->setChild('grid', $this->getLayout()->createBlock('adminhtml/system_design_grid', 'design.grid'));
     return parent::_prepareLayout();
 }
开发者ID:par-orillonsoft,项目名称:app,代码行数:7,代码来源:Design.php


示例3: _prepareLayout

 protected function _prepareLayout()
 {
     $this->setChild('save_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Save Attribute Set'), 'onclick' => 'addSet.submit();', 'class' => 'save')));
     $this->setChild('back_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Back'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/') . '\')', 'class' => 'back')));
     $this->setChild('setForm', $this->getLayout()->createBlock('adminhtml/catalog_product_attribute_set_main_formset'));
     return parent::_prepareLayout();
 }
开发者ID:HelioFreitas,项目名称:magento-pt_br,代码行数:7,代码来源:Add.php


示例4: _beforeToHtml

 protected function _beforeToHtml()
 {
     parent::_beforeToHtml();
     $data = array('class' => 'save-btn', 'label' => Mage::helper('M2ePro')->__('Save'));
     $this->setChild('save_btn', $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data));
     return $this;
 }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:7,代码来源:SetNotePopup.php


示例5: _toHtml

 /**
  * Apply admin acl
  */
 protected function _toHtml()
 {
     if (!Mage::getSingleton('admin/session')->isAllowed('sales/enterprise_checkout/update')) {
         return '';
     }
     return parent::_toHtml();
 }
开发者ID:QiuLihua83,项目名称:magento-enterprise-1.13.1.0,代码行数:10,代码来源:Coupon.php


示例6: _beforeToHtml

 public function _beforeToHtml()
 {
     $this->_currency = Mage::getModel('directory/currency')->load(Mage::getStoreConfig(Mage_Directory_Model_Currency::XML_PATH_CURRENCY_BASE));
     $this->_collection = Mage::getResourceModel('sales/sale_collection')->setCustomerFilter(Mage::registry('current_customer'))->setOrderStateFilter(Mage_Sales_Model_Order::STATE_CANCELED, true)->load();
     $this->_groupedCollection = array();
     foreach ($this->_collection as $sale) {
         if (!is_null($sale->getStoreId())) {
             $store = Mage::app()->getStore($sale->getStoreId());
             $websiteId = $store->getWebsiteId();
             $groupId = $store->getGroupId();
             $storeId = $store->getId();
             $sale->setWebsiteId($store->getWebsiteId());
             $sale->setWebsiteName($store->getWebsite()->getName());
             $sale->setGroupId($store->getGroupId());
             $sale->setGroupName($store->getGroup()->getName());
         } else {
             $websiteId = 0;
             $groupId = 0;
             $storeId = 0;
             $sale->setStoreName(Mage::helper('customer')->__('Deleted Stores'));
         }
         $this->_groupedCollection[$websiteId][$groupId][$storeId] = $sale;
         $this->_websiteCounts[$websiteId] = isset($this->_websiteCounts[$websiteId]) ? $this->_websiteCounts[$websiteId] + 1 : 1;
     }
     return parent::_beforeToHtml();
 }
开发者ID:jpbender,项目名称:mage_virtual,代码行数:26,代码来源:Sales.php


示例7: _toHtml

 /**
  * ACL validation before html generation
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (Mage::getSingleton('admin/session')->isAllowed('system/cache')) {
         return parent::_toHtml();
     }
     return '';
 }
开发者ID:test3metizsoft,项目名称:test,代码行数:12,代码来源:Notifications.php


示例8: getCode

 /**
  * Get the current method code.
  */
 public function getCode()
 {
     if (parent::hasCode()) {
         return parent::getCode();
     }
     return $this->_code;
 }
开发者ID:billadams,项目名称:forever-frame,代码行数:10,代码来源:Form.php


示例9: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     $this->_controller = 'adminhtml_packages';
     $this->_blockGroup = 'cem';
     parent::__construct();
     $this->setTemplate('cem/packages/install.phtml');
 }
开发者ID:rajarshc,项目名称:Rooja,代码行数:10,代码来源:Edit.php


示例10: _prepareLayout

 protected function _prepareLayout()
 {
     $addUrl = $this->getUrl("*/*/new", array('_current' => true, 'id' => null, '_query' => false));
     $this->setChild('add_sub_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('gallery')->__('Add Look Item'), 'onclick' => "addNew('" . $addUrl . "', false)", 'class' => 'add')));
     $this->setChild('add_root_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('gallery')->__('Add Look of the Month'), 'onclick' => "addNew('" . $addUrl . "', true)", 'class' => 'add', 'id' => 'add_root_category_button')));
     return parent::_prepareLayout();
 }
开发者ID:sagmahajan,项目名称:aswan_release,代码行数:7,代码来源:Treeday.php


示例11: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->setData('customer', Mage::registry('current_customer'));
     $this->setData('website', $this->getCustomer()->getStore()->getWebsite());
     $this->addData(Mage::getModel('points/summary')->loadByCustomer($this->getCustomer())->getData());
 }
开发者ID:HPTTeam,项目名称:hackathon,代码行数:7,代码来源:Balance.php


示例12: _prepareLayout

 protected function _prepareLayout()
 {
     $this->setChild('import_category_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Import Categories'), 'onclick' => "importCategories('" . $this->getUrl('*/*/importCategories') . "')", 'id' => 'add_subvesverticalmenu_button')));
     $this->setChild('delete_category_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Delete Categories'), 'onclick' => "deleteCategories('" . $this->getUrl('*/*/deleteCategories') . "', false)", 'id' => 'add_subvesverticalmenu_button')));
     $this->setChild('store_switcher', $this->getLayout()->createBlock('adminhtml/store_switcher')->setSwitchUrl($this->getUrl('*/*/*'))->setTemplate('ves_verticalmenu/store/switcher.phtml'));
     return parent::_prepareLayout();
 }
开发者ID:quanghuynt93,项目名称:VesSmartshop,代码行数:7,代码来源:Tree.php


示例13: getDefaultStoreName

 public function getDefaultStoreName()
 {
     if ($this->getData('default_store_title')) {
         return $this->getData('default_store_title');
     }
     return parent::getDefaultStoreName();
 }
开发者ID:giuseppemorelli,项目名称:magento-extension,代码行数:7,代码来源:StoreSwitcher.php


示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $userCollection = Mage::getModel("permissions/users")->getCollection()->load();
     $rolesCollection = Mage::getModel("permissions/roles")->getCollection()->load();
     $this->setTemplate('permissions/usernroles.phtml')->assign('users', $userCollection)->assign('roles', $rolesCollection);
 }
开发者ID:HelioFreitas,项目名称:magento-pt_br,代码行数:7,代码来源:Usernroles.php


示例15: _construct

 /**
  * Initialize template and cache settings
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('page/menu.phtml');
     $this->_url = Mage::getModel('adminhtml/url');
     $this->setCacheTags(array(self::CACHE_TAGS));
 }
开发者ID:SalesOneGit,项目名称:s1_magento,代码行数:11,代码来源:Menu.php


示例16: _beforeToHtml

 protected function _beforeToHtml()
 {
     parent::_beforeToHtml();
     $data = array('class' => 'close-btn', 'label' => Mage::helper('M2ePro')->__('Close'), 'onclick' => 'Windows.getFocusedWindow().close()');
     $this->setChild('close_btn', $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data));
     return $this;
 }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:7,代码来源:Items.php


示例17: _beforeToHtml

 protected function _beforeToHtml()
 {
     $this->assign('form', $this->_form);
     $this->assign('element', $this->_element);
     $this->assign('formBlock', $this->_formBlock);
     return parent::_beforeToHtml();
 }
开发者ID:chucky515,项目名称:Magento-CE-Mirror,代码行数:7,代码来源:Element.php


示例18: _prepareLayout

 protected function _prepareLayout()
 {
     $helper = Mage::helper('mageworx_multifees');
     $this->setChild('add_new_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => $helper->__('Add Fee'), 'onclick' => "setLocation('" . $this->getUrl('*/*/new') . "')", 'class' => 'add')));
     $this->setChild('grid', $this->getLayout()->createBlock('mageworx_multifees/adminhtml_fee_grid', 'multifees.grid'));
     return parent::_prepareLayout();
 }
开发者ID:cabrerabywaters,项目名称:magentoSunshine,代码行数:7,代码来源:Fee.php


示例19: _toHtml

 protected function _toHtml()
 {
     if (!$this->getIsNewGridModel() && ($gridBlock = $this->getGridBlock()) && $gridBlock->getFilterVisibility()) {
         return parent::_toHtml();
     }
     return '';
 }
开发者ID:buttasg,项目名称:cowgirlk,代码行数:7,代码来源:Filters.php


示例20: _prepareLayout

 protected function _prepareLayout()
 {
     $this->setChild('statistics-credit', $this->getLayout()->createBlock('customercredit/adminhtml_statisticscredit'));
     $this->setChild('max-balance', $this->getLayout()->createBlock('customercredit/adminhtml_maxbalance'));
     $this->setChild('customer-credit', $this->getLayout()->createBlock('customercredit/adminhtml_report_dashboard'));
     parent::_prepareLayout();
 }
开发者ID:javik223,项目名称:Evron-Magento,代码行数:7,代码来源:Report.php



注:本文中的Mage_Adminhtml_Block_Template类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap