PageRenderTime 55ms CodeModel.GetById 40ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

/doc/modules/mod_base/validator_base_numericality.html

http://github.com/zotonic/zotonic
HTML | 42 lines | 35 code | 7 blank | 0 comment | 0 complexity | 5f12f347055bcc379782e60bc9fcb559 MD5 | raw file
 1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 2<html>
 3<head>
 4<title>Module validator_base_numericality</title>
 5<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
 6</head>
 7<body bgcolor="white">
 8<div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
 9<hr>
10
11<h1>Module validator_base_numericality</h1>
12<ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>Validator for checking if an input value is a number and within a certain range.
13<p>Copyright Š 2009 Marc Worrell</p>
14
15<p><b>Authors:</b> Marc Worrell (<a href="mailto:marc@worrell.nl"><tt>marc@worrell.nl</tt></a>).</p>
16
17<h2><a name="description">Description</a></h2>Validator for checking if an input value is a number and within a certain range.
18       At the moment this function only accepts integers
19<h2><a name="index">Function Index</a></h2>
20<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#render_validator-5">render_validator/5</a></td><td></td></tr>
21<tr><td valign="top"><a href="#validate-5">validate/5</a></td><td></td></tr>
22</table>
23
24<h2><a name="functions">Function Details</a></h2>
25
26<h3 class="function"><a name="render_validator-5">render_validator/5</a></h3>
27<div class="spec">
28<p><tt>render_validator(X1, TriggerId, TargetId, Args, Context) -&gt; any()</tt></p>
29</div>
30
31<h3 class="function"><a name="validate-5">validate/5</a></h3>
32<div class="spec">
33<p><tt>validate(X1::Type, Id::TriggerId, Value::Values, X4::Args, Context) -&gt; {ok, AcceptedValue} | {error, Id, Error}</tt>
34<ul class="definitions"><li><tt>Error = invalid | novalue | {script, Script}</tt></li>
35</ul></p>
36</div>
37<hr>
38
39<div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
40<p><i>Generated by EDoc, Oct 13 2011, 14:45:57.</i></p>
41</body>
42</html>