Схема
protected mixed
validate (
)
Аргументы
| Аргумент |
Возможный тип |
Описание |
|
У метода нет аргументов
|
Описание
Метод пока еще не документирован.
Исходный код
if (!$this->user->hasPermission('modify', 'payment/pp_express')) {
$this->error['warning'] = $this->language->get('error_permission');
}
if (empty($this->request->post['pp_express_username'])) {
$this->error['username'] = $this->language->get('error_username');
}
if (empty($this->request->post['pp_express_password'])) {
$this->error['password'] = $this->language->get('error_password');
}
if (empty($this->request->post['pp_express_signature'])) {
$this->error['signature'] = $this->language->get('error_signature');
}
if (!$this->error) {
return true;
} else {
return false;
}