Схема
protected mixed
validateForm (
)
Аргументы
| Аргумент |
Возможный тип |
Описание |
|
У метода нет аргументов
|
Описание
Метод пока еще не документирован.
Исходный код
if (!$this->user->hasPermission('modify', 'sale/customer_ban_ip')) {
$this->error['warning'] = $this->language->get('error_permission');
}
if ((utf8_strlen($this->request->post['ip']) < 1) || (utf8_strlen($this->request->post['ip']) > 40)) {
$this->error['ip'] = $this->language->get('error_ip');
}
if (!$this->error) {
return true;
} else {
return false;
}