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