当前位置: 首页>>代码示例>>PHP>>正文


PHP Mage_Adminhtml_Block_Widget_Form::__construct方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setId('general_tabs');
     $this->setDestElementId('form');
     $this->setTitle(Mage::helper('awb')->__('Item Information'));
 }
开发者ID:uibar,项目名称:peggysgift,代码行数:7,代码来源:Curier.php

示例2: __construct

 /**
  * Add connect Button
  */
 public function __construct()
 {
     $this->_blockGroup = 'shopgate';
     $this->_controller = 'adminhtml_oAuth_connect';
     $this->_headerText = Mage::helper('shopgate')->__('Connect Form');
     parent::__construct();
 }
开发者ID:buttasg,项目名称:cowgirlk,代码行数:10,代码来源:Form.php

示例3: __construct

 /**
  * Set form id and title
  *
  * @param array $args
  */
 public function __construct(array $args = array())
 {
     parent::__construct();
     $this->setId('urlRedirect_form');
     $this->setTitle($this->__('Block Information'));
     $this->_factory = !empty($args['factory']) ? $args['factory'] : Mage::getSingleton('core/factory');
 }
开发者ID:barneydesmond,项目名称:propitious-octo-tribble,代码行数:12,代码来源:Form.php

示例4: __construct

 /**
  * Class constructor
  *
  */
 public function __construct()
 {
     parent::__construct();
     $rid = Mage::app()->getRequest()->getParam('rid', false);
     $resources = Mage::getModel('admin/roles')->getResourcesList();
     $rules_set = Mage::getResourceModel('admin/rules_collection')->getByRoles($rid)->load();
     $selrids = array();
     /** @var $item Mage_Admin_Model_Rules */
     foreach ($rules_set->getItems() as $item) {
         $itemResourceId = $item->getResource_id();
         if (array_key_exists(strtolower($itemResourceId), $resources)) {
             if ($item->isAllowed()) {
                 $resources[$itemResourceId]['checked'] = true;
                 array_push($selrids, $itemResourceId);
             }
         }
     }
     $resourcesPermissionsMap = $rules_set->getResourcesPermissionsArray();
     $undefinedResources = array_diff(array_keys($resources), array_keys($resourcesPermissionsMap));
     foreach ($undefinedResources as $undefinedResourceId) {
         if ($this->_getFallbackHelper()->fallbackResourcePermissions($resourcesPermissionsMap, $undefinedResourceId) == Mage_Admin_Model_Rules::RULE_PERMISSION_ALLOWED) {
             array_push($selrids, $undefinedResourceId);
         }
     }
     $this->setSelectedResources($selrids);
     $this->setTemplate('permissions/rolesedit.phtml');
     //->assign('resources', $resources);
     //->assign('checkedResources', join(',', $selrids));
 }
开发者ID:chucky515,项目名称:Magento-CE-Mirror,代码行数:33,代码来源:Rolesedit.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     if (empty(self::$helper)) {
         self::$helper = Mage::helper('mturbo');
     }
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:7,代码来源:Abstract.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('amazonListingEditForm');
     //------------------------------
 }
开发者ID:xiaoguizhidao,项目名称:beut,代码行数:8,代码来源:Form.php

示例7: __construct

 /**
  * Constructeur: on charge
  *
  */
 public function __construct()
 {
     parent::__construct();
     //charge le manufacturer
     $pc_num = Mage::app()->getRequest()->getParam('pc_num', false);
     $model = Mage::getModel('Purchase/Contact');
     $this->_contact = $model->load($pc_num);
 }
开发者ID:TrygveSkogsholm,项目名称:Magento-Patch,代码行数:12,代码来源:Edit.php

示例8: __construct

 public function __construct()
 {
     $this->_blockGroup = 'hackathon_emailpreview';
     $this->_controller = 'adminhtml_form';
     $this->_headerText = Mage::helper('hackathon_emailpreview')->__('Edit Form');
     parent::__construct();
     self::_prepareForm();
 }
开发者ID:xD83d,项目名称:E-MailPreview,代码行数:8,代码来源:Preview.php

示例9: __construct

 /**
  * Class constructor
  *
  * @param array $data
  * @throws InvalidArgumentException
  */
 public function __construct(array $data = array())
 {
     $this->_app = isset($data['app']) ? $data['app'] : Mage::app();
     if (!$this->_app instanceof Mage_Core_Model_App) {
         throw new InvalidArgumentException('Required application object is invalid');
     }
     parent::__construct($data);
 }
开发者ID:nemphys,项目名称:magento2,代码行数:14,代码来源:Labels.php

示例10: __construct

 /**
  * Constructeur: on charge
  *
  */
 public function __construct()
 {
     $this->_blockGroup = 'Purchase';
     $this->_objectId = 'id';
     $this->_controller = 'order';
     parent::__construct();
     $this->setTemplate('Purchase/Order/Edit/Tab/Accounting.phtml');
 }
开发者ID:TrygveSkogsholm,项目名称:Magento-Patch,代码行数:12,代码来源:Accounting.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('developmentInspection');
     //------------------------------
     $this->setTemplate('M2ePro/development/tabs/inspection.phtml');
 }
开发者ID:xiaoguizhidao,项目名称:bb,代码行数:9,代码来源:Inspection.php


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