本文整理汇总了PHP中sbr_meta::checkRequired方法的典型用法代码示例。如果您正苦于以下问题:PHP sbr_meta::checkRequired方法的具体用法?PHP sbr_meta::checkRequired怎么用?PHP sbr_meta::checkRequired使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sbr_meta
的用法示例。
在下文中一共展示了sbr_meta::checkRequired方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$error_file = array();
if ($form_type == sbr::FT_PHYS && !is_emp($u->role)) {
// сканы документов
$attachedFiles = new attachedfiles($_POST['attachedfiles_session']);
$attachedFiles_files = $attachedFiles->getFiles(array(1, 4));
$err = $account->addAttach2($attachedFiles_files);
// сохраняем файлы
$filesExists = count($attachedFiles->getFiles()) > 0;
$attachedFiles->clearBySession();
if ($err) {
$error_file['err_attach'] = $err;
} elseif (!$filesExists) {
$error_file['err_attach'] = "Необходимо загрузить скан одной или нескольких страниц паспорта.";
}
}
$required_error = sbr_meta::checkRequired($form_type, $rez_type, $reqvs[$form_type], is_emp($u->role));
$start_errors = array_merge($required_error, $error_file, $other_error);
if ($err = sbr_meta::setUserReqv($uid, $rez_type, $form_type, $reqvs[$form_type], $ft_disabled, $is_agree_view, $start_errors)) {
if (isset($err['mob_phone'])) {
$err['phone'] = $err['mob_phone'];
}
if (isset($err['phone']) && $err['phone'] === true) {
if (count($err) == 1) {
//отправляем смс
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/sms_gate_a1.php';
$sms_gate = new sms_gate_a1($reqvs[$form_type]['phone']);
if (!$sms_gate->isNextSend()) {
$sms_gate->sendAuthCellCode(sms_gate::TYPE_ACTIVATE);
$_SESSION['sms_accept_code'] = $sms_gate->getAuthCode();
$_SESSION['sms_accept_phone'] = $reqvs[$form_type]['phone'];
if (SMS_GATE_DEBUG) {