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