PageRenderTime 25ms CodeModel.GetById 17ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/doc/core/m_modules.html

https://code.google.com/p/zotonic/
HTML | 54 lines | 45 code | 9 blank | 0 comment | 0 complexity | 52f80e60e930632de7d22f4edc8b446a MD5 | raw file
 1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 2<html>
 3<head>
 4<title>Module m_modules</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 m_modules</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>Model for the zotonic modules.
13<p>Copyright Š 2010 Marc Worrell
14  Date: 2010-05-05
15 </p>
16
17<p><b>Behaviours:</b> <a href="gen_model.html"><tt>gen_model</tt></a>.</p>
18<p><b>Authors:</b> Marc Worrell (<a href="mailto:marc@worrell.nl"><tt>marc@worrell.nl</tt></a>).</p>
19
20<h2><a name="description">Description</a></h2>Model for the zotonic modules. List all modules, enabled or disabled.
21<h2><a name="index">Function Index</a></h2>
22<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#all-1">all/1</a></td><td>Return the list of modules.</td></tr>
23<tr><td valign="top"><a href="#m_find_value-3">m_find_value/3</a></td><td>Fetch the value for the key from a model source.</td></tr>
24<tr><td valign="top"><a href="#m_to_list-2">m_to_list/2</a></td><td>Transform a m_config value to a list, used for template loops.</td></tr>
25<tr><td valign="top"><a href="#m_value-2">m_value/2</a></td><td>Transform a model value so that it can be formatted or piped through filters.</td></tr>
26</table>
27
28<h2><a name="functions">Function Details</a></h2>
29
30<h3 class="function"><a name="all-1">all/1</a></h3>
31<div class="spec">
32<p><tt>all(Context) -&gt; any()</tt></p>
33</div><p>Return the list of modules</p>
34
35<h3 class="function"><a name="m_find_value-3">m_find_value/3</a></h3>
36<div class="spec">
37<p><tt>m_find_value(Module::Key, M::Source, Context) -&gt; term()</tt></p>
38</div><p>Fetch the value for the key from a model source</p>
39
40<h3 class="function"><a name="m_to_list-2">m_to_list/2</a></h3>
41<div class="spec">
42<p><tt>m_to_list(M::Source, Context) -&gt; List</tt></p>
43</div><p>Transform a m_config value to a list, used for template loops</p>
44
45<h3 class="function"><a name="m_value-2">m_value/2</a></h3>
46<div class="spec">
47<p><tt>m_value(M::Source, Context) -&gt; term()</tt></p>
48</div><p>Transform a model value so that it can be formatted or piped through filters</p>
49<hr>
50
51<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>
52<p><i>Generated by EDoc, Aug 12 2011, 20:01:40.</i></p>
53</body>
54</html>