當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。