本文整理匯總了PHP中validator::validateNumeric方法的典型用法代碼示例。如果您正苦於以下問題:PHP validator::validateNumeric方法的具體用法?PHP validator::validateNumeric怎麽用?PHP validator::validateNumeric使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類validator
的用法示例。
在下文中一共展示了validator::validateNumeric方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array_push
$prescribedLimit = 0;
}
$chConfigObj->setPrescribedLimit($prescribedLimit);
if (!empty($chseq)) {
$channlConfigs[intval($chseq)] = $chConfigObj;
} else {
array_push($channlConfigs, $chConfigObj);
}
if (!empty($chNo)) {
if (!in_array($chNo, $chNoArr)) {
array_push($chNoArr, $chNo);
} else {
array_push($dupNoChArr, $chNo);
}
}
$errMsg .= validator::validateNumeric("Row No. {$count} - Channel Number", $chNo, 11, false);
$errMsg .= validator::validateform("Row No. {$count} - Channel Name", $chName, 255, false);
$errMsg .= validator::validateform("Row No. {$count} - Channel Unit", $chUnit, 10, false);
$count++;
}
if (count($dupNoChArr) > 0) {
$errMsg .= "Duplicate Channel Number(s) :- " . implode(",", $dupNoChArr);
}
}
if (!empty($errMsg)) {
$div = " <div class='ui-widget'>\n <div class='ui-state-error ui-corner-all' style='padding: 0 .7em;'>\n <p><span class='ui-icon ui-icon-alert' style='float: left; margin-right: .3em;'></span>\n <strong>Error during Edit Meta</strong> <br/>" . $errMsg . "</p>\n </div></div>";
} else {
$CDS->saveList($channlConfigs);
$folderSeq = intval($_POST["selectedFolderSeq"]);
$channlConfigs = $CDS->FindByFolder($selSeq);
$msg = "Parameters Updated Successfully.";