本文整理汇总了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.";