本文整理汇总了PHP中Mage_Adminhtml_Block_Catalog_Category_Abstract类的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Catalog_Category_Abstract类的具体用法?PHP Mage_Adminhtml_Block_Catalog_Category_Abstract怎么用?PHP Mage_Adminhtml_Block_Catalog_Category_Abstract使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Mage_Adminhtml_Block_Catalog_Category_Abstract类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: _prepareLayout
protected function _prepareLayout()
{
$this->setChild('tabs', $this->getLayout()->createBlock('adminhtml/catalog_category_tabs', 'tabs'));
$this->setChild('save_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Save Category'), 'onclick' => "categorySubmit('" . $this->getSaveUrl() . "',true)", 'class' => 'save')));
$this->setChild('delete_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Delete Category'), 'onclick' => "categoryDelete('" . $this->getUrl('*/*/delete', array('_current' => true)) . "',true)", 'class' => 'delete')));
$this->setChild('reset_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Reset'), 'onclick' => "categoryReset('" . $this->getUrl('*/*/edit', array('_current' => true)) . "',true)")));
return parent::_prepareLayout();
}
开发者ID:HelioFreitas,项目名称:magento-pt_br,代码行数:8,代码来源:Form.php
示例2: _prepareLayout
protected function _prepareLayout()
{
$addUrl = $this->getUrl("*/*/add", array('_current' => true, 'id' => null, '_query' => false));
$this->setChild('add_sub_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Add Subcategory'), 'onclick' => "addNew('" . $addUrl . "', false)", 'class' => 'add')));
$this->setChild('add_root_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Add Root Category'), 'onclick' => "addNew('" . $addUrl . "', true)", 'class' => 'add', 'id' => 'add_root_category_button')));
$this->setChild('store_switcher', $this->getLayout()->createBlock('adminhtml/store_switcher')->setSwitchUrl($this->getUrl('*/*/*', array('_current' => true, '_query' => false, 'store' => null)))->setTemplate('store/switcher/enhanced.phtml'));
return parent::_prepareLayout();
}
开发者ID:HelioFreitas,项目名称:magento-pt_br,代码行数:8,代码来源:Tree.php
示例3: __construct
public function __construct()
{
parent::__construct();
// Initialization block
//------------------------------
$this->setId('listingCategoryTree');
//------------------------------
$this->setTemplate('M2ePro/common/listing/category/tree.phtml');
}
开发者ID:xiaoguizhidao,项目名称:ecommerce,代码行数:9,代码来源:Tree.php
示例4: _prepareLayout
protected function _prepareLayout()
{
$addMenuUrl = $this->getUrl("*/*/add", array('_current' => true, 'menu_id' => null, '_query' => false));
$this->setChild('add_menu_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('menu')->__('Add Menu'), 'onclick' => "addNew('" . $addMenuUrl . "', false)", 'class' => 'add', 'id' => 'add_menu_button')));
$addItemUrl = $this->getUrl("*/adminhtml_item/add", array('_current' => true, 'id' => null, '_query' => false));
$this->setChild('add_item_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('menu')->__('Add Item'), 'onclick' => "addNew('" . $addItemUrl . "', false)", 'class' => 'add', 'id' => 'add_item_button')));
$this->setChild('menu_switcher', $this->getLayout()->createBlock('menu/adminhtml_menu_switcher')->setSwitchUrl($this->getUrl('*/*/*', array('_current' => true, '_query' => false, 'store' => null)))->setTemplate('glace/menu/switcher.phtml'));
return parent::_prepareLayout();
}
开发者ID:vinayshuklasourcefuse,项目名称:sareez,代码行数:9,代码来源:Tree.php
示例5: __construct
public function __construct()
{
parent::__construct();
// Initialization block
// ---------------------------------------
$this->setId('listingCategoryTree');
// ---------------------------------------
$this->setTemplate('M2ePro/listing/category/tree.phtml');
$this->_isAjax = $this->getRequest()->isXmlHttpRequest();
}
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:10,代码来源:Tree.php
示例6: _prepareLayout
protected function _prepareLayout()
{
$addUrl = $this->getUrl("*/*/add", array('_current' => true, 'id' => null, '_query' => false));
$this->addChild('add_sub_button', 'Mage_Adminhtml_Block_Widget_Button', array('label' => Mage::helper('Mage_Catalog_Helper_Data')->__('Add Subcategory'), 'onclick' => "addNew('" . $addUrl . "', false)", 'class' => 'add', 'id' => 'add_subcategory_button', 'style' => $this->canAddSubCategory() ? '' : 'display: none;'));
if ($this->canAddRootCategory()) {
$this->addChild('add_root_button', 'Mage_Adminhtml_Block_Widget_Button', array('label' => Mage::helper('Mage_Catalog_Helper_Data')->__('Add Root Category'), 'onclick' => "addNew('" . $addUrl . "', true)", 'class' => 'add', 'id' => 'add_root_category_button'));
}
$this->setChild('store_switcher', $this->getLayout()->createBlock('Mage_Adminhtml_Block_Store_Switcher')->setSwitchUrl($this->getUrl('*/*/*', array('_current' => true, '_query' => false, 'store' => null)))->setTemplate('store/switcher/enhanced.phtml'));
return parent::_prepareLayout();
}
开发者ID:nayanchamp,项目名称:magento2,代码行数:10,代码来源:Tree.php
示例7: _prepareLayout
protected function _prepareLayout()
{
$this->setChild('tabs', $this->getLayout()->createBlock('adminhtml/catalog_category_tabs', 'tabs'));
if (!$this->getCategory()->isReadonly()) {
$this->setChild('save_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Save Category'), 'onclick' => "categorySubmit('" . $this->getSaveUrl() . "',true)", 'class' => 'save')));
}
if (!in_array($this->getCategory()->getId(), $this->getRootIds()) && $this->getCategory()->isDeleteable()) {
$this->setChild('delete_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Delete Category'), 'onclick' => "categoryDelete('" . $this->getUrl('*/*/delete', array('_current' => true)) . "',true)", 'class' => 'delete')));
}
if (!$this->getCategory()->isReadonly()) {
$resetPath = $this->getCategory()->getId() ? '*/*/edit' : '*/*/add';
$this->setChild('reset_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Reset'), 'onclick' => "categoryReset('" . $this->getUrl($resetPath, array('_current' => true)) . "',true)")));
}
return parent::_prepareLayout();
}
开发者ID:hunnybohara,项目名称:magento-chinese-localization,代码行数:15,代码来源:Form.php
示例8: _prepareLayout
protected function _prepareLayout()
{
$category = $this->getCategory();
$categoryId = (int) $category->getId();
// 0 when we create category, otherwise some value for editing category
$this->setChild('tabs', $this->getLayout()->createBlock('adminhtml/catalog_category_tabs', 'tabs'));
// Save button
if (!$category->isReadonly()) {
$this->setChild('save_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Save Category'), 'onclick' => "categorySubmit('" . $this->getSaveUrl() . "', true)", 'class' => 'save')));
}
// Delete button
if (!in_array($categoryId, $this->getRootIds()) && $category->isDeleteable()) {
$this->setChild('delete_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Delete Category'), 'onclick' => "categoryDelete('" . $this->getUrl('*/*/delete', array('_current' => true)) . "', true, {$categoryId})", 'class' => 'delete')));
}
// Reset button
if (!$category->isReadonly()) {
$resetPath = $categoryId ? '*/*/edit' : '*/*/add';
$this->setChild('reset_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Reset'), 'onclick' => "categoryReset('" . $this->getUrl($resetPath, array('_current' => true)) . "',true)")));
}
return parent::_prepareLayout();
}
开发者ID:hirentricore,项目名称:devmagento,代码行数:21,代码来源:Form.php
示例9: _prepareLayout
/**
* Prepare layout
*
* @return Enterprise_CatalogPermissions_Block_Adminhtml_Catalog_Category_Tab_Permissions
*/
protected function _prepareLayout()
{
$this->setChild('row', $this->getLayout()->createBlock('enterprise_catalogpermissions/adminhtml_catalog_category_tab_permissions_row'));
$this->setChild('add_button', $this->getLayout()->createBlock('adminhtml/widget_button')->addData(array('label' => $this->helper('enterprise_catalogpermissions')->__('New Permission'), 'class' => 'add' . ($this->isReadonly() ? ' disabled' : ''), 'type' => 'button', 'disabled' => $this->isReadonly())));
return parent::_prepareLayout();
}
开发者ID:jpbender,项目名称:mage_virtual,代码行数:11,代码来源:Permissions.php
示例10: __construct
/**
* Set custom template for the block
*/
public function __construct()
{
parent::__construct();
$this->setTemplate('urlrewrite/categories.phtml');
}
开发者ID:nemphys,项目名称:magento2,代码行数:8,代码来源:Tree.php
示例11: _prepareLayout
protected function _prepareLayout()
{
$this->setChild('delete_button', $this->getLayout()->createBlock('adminhtml/widget_button')->addData(array('class' => 'delete' . ($this->isReadonly() ? ' disabled' : ''), 'disabled' => $this->isReadonly(), 'type' => 'button', 'id' => '{{html_id}}_delete_button')));
return parent::_prepareLayout();
}
开发者ID:barneydesmond,项目名称:propitious-octo-tribble,代码行数:5,代码来源:Row.php
示例12: __construct
/**
* Set custom template for the block
*
*/
public function __construct()
{
parent::__construct();
$this->setTemplate('enterprise/catalogevent/categories.phtml');
}
开发者ID:jpbender,项目名称:mage_virtual,代码行数:9,代码来源:Category.php
示例13: __construct
public function __construct()
{
parent::__construct();
$this->setUseAjax(false);
$this->setTemplate('M2ePro/listings/tree.phtml');
}
开发者ID:naz-ahmed,项目名称:ndap-magento-mirror,代码行数:6,代码来源:Tree.php
注:本文中的Mage_Adminhtml_Block_Catalog_Category_Abstract类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论