本文整理汇总了PHP中Magento\Backend\Block\Template::_construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Template::_construct方法的具体用法?PHP Template::_construct怎么用?PHP Template::_construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Backend\Block\Template
的用法示例。
在下文中一共展示了Template::_construct方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _construct
/**
* Initialize review data
*
* @return void
*/
protected function _construct()
{
parent::_construct();
if ($this->_coreRegistry->registry('review_data')) {
$this->setReviewId($this->_coreRegistry->registry('review_data')->getReviewId());
}
}
示例2: _construct
/**
* @return void
*/
protected function _construct()
{
parent::_construct();
$templateId = $this->getRequest()->getParam('template_id');
if ($templateId) {
$this->setTemplateId($templateId);
}
}
示例3: _construct
/**
* Initialize "controller" and "header text"
*
* @return void
*/
protected function _construct()
{
parent::_construct();
if ($this->hasData(self::PARAM_CONTROLLER)) {
$this->_controller = $this->_getData(self::PARAM_CONTROLLER);
}
if ($this->hasData(self::PARAM_HEADER_TEXT)) {
$this->_headerText = $this->_getData(self::PARAM_HEADER_TEXT);
}
}
示例4: _construct
/**
* Initialize template and cache settings
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setCacheTags([self::CACHE_TAGS]);
}
示例5: _construct
/**
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->assign('createUrl', $this->getUrl('tax/rate/save'));
}
示例6: _construct
/**
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setUseConfirm(true);
$this->setUseAjax(true);
$this->setShowManageStoresLink(0);
if (!$this->hasData('switch_websites')) {
$this->setSwitchWebsites(false);
}
if (!$this->hasData('switch_store_groups')) {
$this->setSwitchStoreGroups(false);
}
if (!$this->hasData('switch_store_views')) {
$this->setSwitchStoreViews(true);
}
$this->setDefaultSelectionName(__('All Store Views'));
}
示例7: _construct
/**
* Class constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->pageConfig->addBodyClass($this->_request->getFullActionName('-'));
}
示例8: _construct
/**
* @return void
*/
protected function _construct()
{
parent::_construct();
$collection = $this->_problemCollection->addSubscriberInfo()->addQueueInfo();
}
示例9: _construct
/**
* Initialize the sales grid.
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('customer_view_sales_grid');
}
示例10: _construct
/**
* Class constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setCanEditPrice(true);
$this->setCanReadPrice(true);
}
示例11: _construct
/**
* Constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('sales_order_create_totals_table');
}