本文整理匯總了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) {