本文整理汇总了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();
示例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();
}
}
示例3: displayErrors
public function displayErrors()
{
$this->adminAttributes->displayErrors();
parent::displayErrors();
}
示例4: displayErrors
public function displayErrors()
{
parent::displayErrors();
$this->adminCMS->displayErrors();
$this->adminCMSCategories->displayErrors();
}
示例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();
}
}
示例6: displayErrors
public function displayErrors()
{
$this->adminFeaturesValues->displayErrors();
parent::displayErrors();
}
示例7: displayErrors
public function displayErrors()
{
static $seenErrors = false;
if (!$seenErrors) {
$seenErrors = true;
parent::displayErrors();
}
}