本文整理汇总了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'));
}
示例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();
}
示例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');
}
示例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));
}
示例5: __construct
public function __construct()
{
parent::__construct();
if (empty(self::$helper)) {
self::$helper = Mage::helper('mturbo');
}
}
示例6: __construct
public function __construct()
{
parent::__construct();
// Initialization block
//------------------------------
$this->setId('amazonListingEditForm');
//------------------------------
}
示例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);
}
示例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();
}
示例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);
}
示例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');
}
示例11: __construct
public function __construct()
{
parent::__construct();
// Initialization block
//------------------------------
$this->setId('developmentInspection');
//------------------------------
$this->setTemplate('M2ePro/development/tabs/inspection.phtml');
}