当前位置: 首页>>代码示例>>PHP>>正文


PHP AdminController::initProcess方法代码示例

本文整理汇总了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();
 }
开发者ID:rrameshsat,项目名称:Prestashop,代码行数:8,代码来源:AdminGroupsController.php

示例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 = '';
     }
 }
开发者ID:rrameshsat,项目名称:Prestashop,代码行数:8,代码来源:AdminSearchConfController.php

示例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.');
     }
 }
开发者ID:toufikadfab,项目名称:PrestaShop-1.5,代码行数:10,代码来源:AdminPdfController.php

示例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();
 }
开发者ID:M03G,项目名称:PrestaShop,代码行数:11,代码来源:AdminQuickAccessesController.php

示例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');
     }
 }
开发者ID:M03G,项目名称:PrestaShop,代码行数:11,代码来源:AdminPdfController.php

示例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();
 }
开发者ID:zangles,项目名称:lennyba,代码行数:11,代码来源:AdminQuickAccessesController.php

示例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();
 }
开发者ID:jpodracky,项目名称:dogs,代码行数:14,代码来源:AdminAttributeGeneratorController.php

示例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();
 }
开发者ID:jpodracky,项目名称:dogs,代码行数:16,代码来源:AdminGroupsController.php

示例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();
     }
 }
开发者ID:ortegon000,项目名称:tienda,代码行数:24,代码来源:AdminTaxRulesGroupController.php

示例11: initProcess

 public function initProcess()
 {
     parent::initProcess();
     if (Tools::getValue('export' . $this->table)) {
         $this->display = 'export';
         $this->action = 'export';
     }
 }
开发者ID:Arikito,项目名称:barbator,代码行数:8,代码来源:AdminRequestSqlController.php

示例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();
 }
开发者ID:M03G,项目名称:PrestaShop,代码行数:14,代码来源:AdminAttributeGeneratorController.php

示例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');
     }
 }
开发者ID:rongandat,项目名称:vatfairfoot,代码行数:9,代码来源:AdminAttributesGroupsController.php

示例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();
 }
开发者ID:retallicka,项目名称:PrestaShop,代码行数:18,代码来源:AdminFeaturesController.php


注:本文中的AdminController::initProcess方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。