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


PHP AdminTab::displayErrors方法代码示例

本文整理汇总了PHP中AdminTab::displayErrors方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminTab::displayErrors方法的具体用法?PHP AdminTab::displayErrors怎么用?PHP AdminTab::displayErrors使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AdminTab的用法示例。


在下文中一共展示了AdminTab::displayErrors方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: displayErrors

    /**
	 * Display errors
	 * @view AdminTab::displayErrors()
	 */
    public function displayErrors()
    {
        parent::displayErrors();
        $this->adminCategory->displayErrors();
        $this->adminPost->displayErrors();
开发者ID:nicolasjeol,项目名称:hec-ecommerce,代码行数:9,代码来源:AdminPlBlog.php

示例2: postProcess

 public function postProcess()
 {
     global $cookie, $currentIndex;
     if (Tools::isSubmit('submitDatePicker')) {
         if (!Validate::isDate($from = Tools::getValue('datepickerFrom')) or !Validate::isDate($to = Tools::getValue('datepickerTo'))) {
             $this->_errors[] = Tools::displayError('date specified not valid');
         }
     }
     if (Tools::isSubmit('submitDateDay')) {
         $from = date('Y-m-d');
         $to = date('Y-m-d');
     }
     if (Tools::isSubmit('submitDateDayPrev')) {
         $yesterday = time() - 60 * 60 * 24;
         $from = date('Y-m-d', $yesterday);
         $to = date('Y-m-d', $yesterday);
     }
     if (Tools::isSubmit('submitDateMonth')) {
         $from = date('Y-m-01');
         $to = date('Y-m-t');
     }
     if (Tools::isSubmit('submitDateMonthPrev')) {
         $m = date('m') == 1 ? 12 : date('m') - 1;
         $y = $m == 12 ? date('Y') - 1 : date('Y');
         $from = $y . '-' . $m . '-01';
         $to = $y . '-' . $m . date('-t', mktime(12, 0, 0, $m, 15, $y));
     }
     if (Tools::isSubmit('submitDateYear')) {
         $from = date('Y-01-01');
         $to = date('Y-12-31');
     }
     if (Tools::isSubmit('submitDateYearPrev')) {
         $from = date('Y') - 1 . date('-01-01');
         $to = date('Y') - 1 . date('-12-31');
     }
     if (isset($from) and isset($to) and !sizeof($this->_errors)) {
         $employee = new Employee($cookie->id_employee);
         $employee->stats_date_from = $from;
         $employee->stats_date_to = $to;
         $employee->update();
         Tools::redirectAdmin($_SERVER['REQUEST_URI']);
     }
     if (Tools::getValue('submitSettings')) {
         if ($this->tabAccess['edit'] === '1') {
             $currentIndex .= '&module=' . Tools::getValue('module');
             $this->_postConfig($this->_fieldsSettings);
         } else {
             $this->_errors[] = Tools::displayError('You do not have permission to edit something here.');
         }
     }
     if (sizeof($this->_errors)) {
         AdminTab::displayErrors();
     }
 }
开发者ID:Bruno-2M,项目名称:prestashop,代码行数:54,代码来源:AdminStatsTab.php

示例3: displayErrors

 public function displayErrors()
 {
     $this->adminAttributes->displayErrors();
     parent::displayErrors();
 }
开发者ID:hecbuma,项目名称:quali-fisioterapia,代码行数:5,代码来源:AdminAttributesGroups.php

示例4: displayErrors

 public function displayErrors()
 {
     parent::displayErrors();
     $this->adminCMS->displayErrors();
     $this->adminCMSCategories->displayErrors();
 }
开发者ID:hecbuma,项目名称:quali-fisioterapia,代码行数:6,代码来源:AdminCMSContent.php

示例5: displayErrors

 public function displayErrors()
 {
     parent::displayErrors();
     $this->adminProducts->displayErrors();
     $this->adminCategories->displayErrors();
     if (Validate::isLoadedObject($this->attributeGenerator)) {
         $this->attributeGenerator->displayErrors();
     }
     if (Validate::isLoadedObject($this->imageResize)) {
         $this->imageResize->displayErrors();
     }
 }
开发者ID:Evil1991,项目名称:PrestaShop-1.4,代码行数:12,代码来源:AdminCatalog.php

示例6: displayErrors

 public function displayErrors()
 {
     $this->adminFeaturesValues->displayErrors();
     parent::displayErrors();
 }
开发者ID:nicolasjeol,项目名称:hec-ecommerce,代码行数:5,代码来源:AdminFeatures.php

示例7: displayErrors

 public function displayErrors()
 {
     static $seenErrors = false;
     if (!$seenErrors) {
         $seenErrors = true;
         parent::displayErrors();
     }
 }
开发者ID:sealence,项目名称:local,代码行数:8,代码来源:AdminBackup.php


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