本文整理汇总了PHP中AdminController::initProcess方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminController::initProcess方法的具体用法?PHP AdminController::initProcess怎么用?PHP AdminController::initProcess使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AdminController
的用法示例。
在下文中一共展示了AdminController::initProcess方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initProcess
public function initProcess()
{
$this->id_object = Tools::getValue('id_' . $this->table);
if (Tools::isSubmit('changeShowPricesVal') && $this->id_object) {
$this->action = 'change_show_prices_val';
}
parent::initProcess();
}
示例2: initProcess
public function initProcess()
{
parent::initProcess();
// This is a composite page, we don't want the "options" display mode
if ($this->display == 'options') {
$this->display = '';
}
}
示例3: initProcess
public function initProcess()
{
parent::initProcess();
$access = Profile::getProfileAccess($this->context->employee->id_profile, (int) Tab::getIdFromClassName('AdminOrders'));
if ($access['view'] === '1' && ($action = Tools::getValue('submitAction'))) {
$this->action = $action;
} else {
$this->errors[] = Tools::displayError('You do not have permission to view this.');
}
}
示例4: initProcess
public function initProcess()
{
if ((isset($_GET['new_window' . $this->table]) || isset($_GET['new_window'])) && Tools::getValue($this->identifier)) {
if ($this->access('edit')) {
$this->action = 'newWindow';
} else {
$this->errors[] = $this->trans('You do not have permission to edit this.', array(), 'Admin.Notifications.Error');
}
}
parent::initProcess();
}
示例5: initProcess
public function initProcess()
{
if (Tools::isSubmit('generate')) {
if ($this->tabAccess['edit'] === '1') {
$this->action = 'generate';
} else {
$this->errors[] = Tools::displayError('You do not have permission to add this.');
}
}
parent::initProcess();
}
开发者ID:NathanGiesbrecht,项目名称:PrestaShopAutomationFramework,代码行数:11,代码来源:AdminAttributeGeneratorController.php
示例6: initProcess
public function initProcess()
{
parent::initProcess();
$this->checkCacheFolder();
$access = Profile::getProfileAccess($this->context->employee->id_profile, (int) Tab::getIdFromClassName('AdminOrders'));
if ($access['view'] === '1' && ($action = Tools::getValue('submitAction'))) {
$this->action = $action;
} else {
$this->errors[] = $this->trans('You do not have permission to view this.', array(), 'Admin.Notifications.Error');
}
}
示例7: initProcess
public function initProcess()
{
if ((isset($_GET['new_window' . $this->table]) || isset($_GET['new_window'])) && Tools::getValue($this->identifier)) {
if ($this->tabAccess['edit'] === '1') {
$this->action = 'newWindow';
} else {
$this->errors[] = Tools::displayError('You do not have permission to edit this.');
}
}
parent::initProcess();
}
示例8: initProcess
public function initProcess()
{
if (!defined('PS_MASS_PRODUCT_CREATION')) {
define('PS_MASS_PRODUCT_CREATION', true);
}
if (Tools::isSubmit('generate')) {
if ($this->tabAccess['edit'] === '1') {
$this->action = 'generate';
} else {
$this->errors[] = Tools::displayError('You do not have permission to add this.');
}
}
parent::initProcess();
}
示例9: initProcess
public function initProcess()
{
$this->id_object = Tools::getValue('id_' . $this->table);
if (Tools::isSubmit('changeShowPricesVal') && $this->id_object) {
$this->action = 'change_show_prices_val';
}
if (Tools::getIsset('viewgroup')) {
$this->list_id = 'customer_group';
if (isset($_POST['submitReset' . $this->list_id])) {
$this->processResetFilters();
}
} else {
$this->list_id = 'group';
}
parent::initProcess();
}
示例10: initProcess
public function initProcess()
{
if (Tools::isSubmit('deletetax_rule')) {
if ($this->tabAccess['delete'] === '1') {
$this->action = 'delete_tax_rule';
} else {
$this->errors[] = Tools::displayError('You do not have permission to delete this.');
}
} elseif (Tools::isSubmit('submitBulkdeletetax_rule')) {
if ($this->tabAccess['delete'] === '1') {
$this->action = 'bulk_delete_tax_rules';
} else {
$this->errors[] = Tools::displayError('You do not have permission to delete this.');
}
} elseif (Tools::getValue('action') == 'create_rule') {
if ($this->tabAccess['add'] === '1') {
$this->action = 'create_rule';
} else {
$this->errors[] = Tools::displayError('You do not have permission to add this.');
}
} else {
parent::initProcess();
}
}
示例11: initProcess
public function initProcess()
{
parent::initProcess();
if (Tools::getValue('export' . $this->table)) {
$this->display = 'export';
$this->action = 'export';
}
}
示例12: initProcess
public function initProcess()
{
if (!defined('PS_MASS_PRODUCT_CREATION')) {
define('PS_MASS_PRODUCT_CREATION', true);
}
if (Tools::isSubmit('generate')) {
if ($this->access('edit')) {
$this->action = 'generate';
} else {
$this->errors[] = $this->trans('You do not have permission to add this.', array(), 'Admin.Notifications.Error');
}
}
parent::initProcess();
}
示例13: initProcess
public function initProcess()
{
if (Tools::isSubmit('submitAddaddress') || Tools::isSubmit('deleteaddress') || Tools::isSubmit('submitBulkdeleteaddress') || Tools::isSubmit('exportaddress')) {
$this->table = 'address';
$this->className = 'Address';
$this->identifier = 'id_address';
$this->deleted = true;
$this->fields_list = $this->getAddressFieldsList();
}
parent::initProcess();
}
开发者ID:carloslastresDev,项目名称:HealthyTaiwan_UsingPrestaShop,代码行数:11,代码来源:AdminManufacturersController.php
示例14: initProcess
public function initProcess()
{
$this->setTypeAttribute();
parent::initProcess();
if ($this->table == 'attribute') {
$this->display = 'editAttributes';
$this->id_attribute = (int) Tools::getValue('id_attribute');
}
}
示例15: initProcess
public function initProcess()
{
// Are we working on feature values?
if (Tools::getValue('id_feature_value') || Tools::isSubmit('deletefeature_value') || Tools::isSubmit('submitAddfeature_value') || Tools::isSubmit('addfeature_value') || Tools::isSubmit('updatefeature_value') || Tools::isSubmit('submitBulkdeletefeature_value')) {
$this->setTypeValue();
}
if (Tools::getIsset('viewfeature')) {
$this->list_id = 'feature_value';
if (isset($_POST['submitReset' . $this->list_id])) {
$this->processResetFilters();
}
} else {
$this->list_id = 'feature';
$this->_defaultOrderBy = 'position';
$this->_defaultOrderWay = 'ASC';
}
parent::initProcess();
}