Схема
protected mixed
validate (
)
Аргументы
| Аргумент |
Возможный тип |
Описание |
|
У метода нет аргументов
|
Описание
Метод пока еще не документирован.
Исходный код
if (!$this->user->hasPermission('modify', 'shipping/usps')) {
$this->error['warning'] = $this->language->get('error_permission');
}
if (!$this->request->post['usps_user_id']) {
$this->error['user_id'] = $this->language->get('error_user_id');
}
if (!$this->request->post['usps_postcode']) {
$this->error['postcode'] = $this->language->get('error_postcode');
}
if (!$this->request->post['usps_width']) {
$this->error['width'] = $this->language->get('error_width');
}
if (!$this->request->post['usps_height']) {
$this->error['height'] = $this->language->get('error_height');
}
if (!$this->request->post['usps_length']) {
$this->error['length'] = $this->language->get('error_length');
}
if (!$this->error) {
return true;
} else {
return false;
}