本文整理匯總了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');
}