PageRenderTime 37ms CodeModel.GetById 30ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/doc/modules/mod_base/validator_base_acceptance.html

https://code.google.com/p/zotonic/
HTML | 41 lines | 34 code | 7 blank | 0 comment | 0 complexity | 367fa7c86a6ccb31b7cf4d5c5150dfb7 MD5 | raw file
 1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 2<html>
 3<head>
 4<title>Module validator_base_acceptance</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_acceptance</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 evaluates to "true".
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 evaluates to "true"
18<h2><a name="index">Function Index</a></h2>
19<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>
20<tr><td valign="top"><a href="#validate-5">validate/5</a></td><td></td></tr>
21</table>
22
23<h2><a name="functions">Function Details</a></h2>
24
25<h3 class="function"><a name="render_validator-5">render_validator/5</a></h3>
26<div class="spec">
27<p><tt>render_validator(X1, TriggerId, TargetId, Args, Context) -&gt; any()</tt></p>
28</div>
29
30<h3 class="function"><a name="validate-5">validate/5</a></h3>
31<div class="spec">
32<p><tt>validate(X1::Type, Id::Name, Value::Values, Args, Context) -&gt; {ok, AcceptedValue} | {error, Id, Error}</tt>
33<ul class="definitions"><li><tt>Error = invalid | novalue</tt></li>
34</ul></p>
35</div>
36<hr>
37
38<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>
39<p><i>Generated by EDoc, Aug 12 2011, 19:36:11.</i></p>
40</body>
41</html>