PageRenderTime 120ms CodeModel.GetById 110ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/doc/core/z.html

https://code.google.com/p/zotonic/
HTML | 113 lines | 94 code | 19 blank | 0 comment | 0 complexity | 4dffd7f1a1fd2267427ed20480976119 MD5 | raw file
  1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2<html>
  3<head>
  4<title>Module z</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 z</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>Some easy shortcut functions.
 13<p>Copyright Š 2009 Marc Worrell
 14  Date: 2009-04-08
 15 </p>
 16
 17<p><b>Authors:</b> Marc Worrell (<a href="mailto:marc@worrell.nl"><tt>marc@worrell.nl</tt></a>).</p>
 18
 19<h2><a name="description">Description</a></h2>Some easy shortcut functions.
 20<h2><a name="index">Function Index</a></h2>
 21<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#c-1">c/1</a></td><td>Return a new context.</td></tr>
 22<tr><td valign="top"><a href="#debug-2">debug/2</a></td><td>Log a debug message, with extra props.</td></tr>
 23<tr><td valign="top"><a href="#debug-3">debug/3</a></td><td></td></tr>
 24<tr><td valign="top"><a href="#debug_msg-3">debug_msg/3</a></td><td>Echo and return a debugging value.</td></tr>
 25<tr><td valign="top"><a href="#flush-0">flush/0</a></td><td>Reset all caches, reload the dispatch rules and rescan all modules.</td></tr>
 26<tr><td valign="top"><a href="#flush-1">flush/1</a></td><td></td></tr>
 27<tr><td valign="top"><a href="#info-2">info/2</a></td><td>Log an informational message.</td></tr>
 28<tr><td valign="top"><a href="#info-3">info/3</a></td><td></td></tr>
 29<tr><td valign="top"><a href="#m-0">m/0</a></td><td>(Re)make all erlang source modules and reset the caches.</td></tr>
 30<tr><td valign="top"><a href="#n-2">n/2</a></td><td>Send a notification.</td></tr>
 31<tr><td valign="top"><a href="#n1-2">n1/2</a></td><td>Send a notification to the first observer.</td></tr>
 32<tr><td valign="top"><a href="#restart-0">restart/0</a></td><td>Full restart of Zotonic.</td></tr>
 33<tr><td valign="top"><a href="#warning-2">warning/2</a></td><td>Log a warning.</td></tr>
 34<tr><td valign="top"><a href="#warning-3">warning/3</a></td><td></td></tr>
 35</table>
 36
 37<h2><a name="functions">Function Details</a></h2>
 38
 39<h3 class="function"><a name="c-1">c/1</a></h3>
 40<div class="spec">
 41<p><tt>c(Site) -&gt; any()</tt></p>
 42</div><p>Return a new context</p>
 43
 44<h3 class="function"><a name="debug-2">debug/2</a></h3>
 45<div class="spec">
 46<p><tt>debug(Msg, Context) -&gt; any()</tt></p>
 47</div><p>Log a debug message, with extra props.</p>
 48
 49<h3 class="function"><a name="debug-3">debug/3</a></h3>
 50<div class="spec">
 51<p><tt>debug(Msg, Props, Context) -&gt; any()</tt></p>
 52</div>
 53
 54<h3 class="function"><a name="debug_msg-3">debug_msg/3</a></h3>
 55<div class="spec">
 56<p><tt>debug_msg(Module, Line, Msg) -&gt; any()</tt></p>
 57</div><p>Echo and return a debugging value</p>
 58
 59<h3 class="function"><a name="flush-0">flush/0</a></h3>
 60<div class="spec">
 61<p><tt>flush() -&gt; any()</tt></p>
 62</div><p>Reset all caches, reload the dispatch rules and rescan all modules.</p>
 63
 64<h3 class="function"><a name="flush-1">flush/1</a></h3>
 65<div class="spec">
 66<p><tt>flush(Context) -&gt; any()</tt></p>
 67</div>
 68
 69<h3 class="function"><a name="info-2">info/2</a></h3>
 70<div class="spec">
 71<p><tt>info(Msg, Context) -&gt; any()</tt></p>
 72</div><p>Log an informational message.</p>
 73
 74<h3 class="function"><a name="info-3">info/3</a></h3>
 75<div class="spec">
 76<p><tt>info(Msg, Props, Context) -&gt; any()</tt></p>
 77</div>
 78
 79<h3 class="function"><a name="m-0">m/0</a></h3>
 80<div class="spec">
 81<p><tt>m() -&gt; any()</tt></p>
 82</div><p>(Re)make all erlang source modules and reset the caches.</p>
 83
 84<h3 class="function"><a name="n-2">n/2</a></h3>
 85<div class="spec">
 86<p><tt>n(Msg, Context) -&gt; any()</tt></p>
 87</div><p>Send a notification</p>
 88
 89<h3 class="function"><a name="n1-2">n1/2</a></h3>
 90<div class="spec">
 91<p><tt>n1(Msg, Context) -&gt; any()</tt></p>
 92</div><p>Send a notification to the first observer</p>
 93
 94<h3 class="function"><a name="restart-0">restart/0</a></h3>
 95<div class="spec">
 96<p><tt>restart() -&gt; any()</tt></p>
 97</div><p>Full restart of Zotonic</p>
 98
 99<h3 class="function"><a name="warning-2">warning/2</a></h3>
100<div class="spec">
101<p><tt>warning(Msg, Context) -&gt; any()</tt></p>
102</div><p>Log a warning.</p>
103
104<h3 class="function"><a name="warning-3">warning/3</a></h3>
105<div class="spec">
106<p><tt>warning(Msg, Props, Context) -&gt; any()</tt></p>
107</div>
108<hr>
109
110<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>
111<p><i>Generated by EDoc, Aug 12 2011, 20:01:40.</i></p>
112</body>
113</html>