Схема
protected mixed
validate (
)
Аргументы
| Аргумент |
Возможный тип |
Описание |
|
У метода нет аргументов
|
Описание
Метод пока еще не документирован.
Исходный код
if (!$this->user->hasPermission('modify', 'shipping/ups')) {
$this->error['warning'] = $this->language->get('error_permission');
}
if (!$this->request->post['ups_key']) {
$this->error['key'] = $this->language->get('error_key');
}
if (!$this->request->post['ups_username']) {
$this->error['username'] = $this->language->get('error_username');
}
if (!$this->request->post['ups_password']) {
$this->error['password'] = $this->language->get('error_password');
}
if (!$this->request->post['ups_city']) {
$this->error['city'] = $this->language->get('error_city');
}
if (!$this->request->post['ups_state']) {
$this->error['state'] = $this->language->get('error_state');
}
if (!$this->request->post['ups_country']) {
$this->error['country'] = $this->language->get('error_country');
}
if (empty($this->request->post['ups_length'])) {
$this->error['dimension'] = $this->language->get('error_dimension');
}
if (empty($this->request->post['ups_width'])) {
$this->error['dimension'] = $this->language->get('error_dimension');
}
if (empty($this->request->post['ups_height'])) {
$this->error['dimension'] = $this->language->get('error_dimension');
}
if (!$this->error) {
return true;
} else {
return false;
}