/doc/modules/mod_signal/mod_signal.html
https://code.google.com/p/zotonic/ · HTML · 140 lines · 118 code · 22 blank · 0 comment · 0 complexity · eeda0c36f5135be1f5f1398f41954559 MD5 · raw file
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <title>Module mod_signal</title>
- <link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
- </head>
- <body bgcolor="white">
- <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>
- <hr>
- <h1>Module mod_signal</h1>
- <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>Signal and slot mechanism for use in templates.
- <p>Copyright 2010 Maas-Maarten Zeeman
- Date: 2010-12-03</p>
- <p><b>Behaviours:</b> <a href="gen_server.html"><tt>gen_server</tt></a>.</p>
- <p><b>Authors:</b> Maas-Maarten Zeeman (<a href="mailto:mmzeeman@xs4all.nl"><tt>mmzeeman@xs4all.nl</tt></a>).</p>
- <h2><a name="description">Description</a></h2>Signal and slot mechanism for use in templates.
- <h2><a name="index">Function Index</a></h2>
- <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#code_change-3">code_change/3</a></td><td></td></tr>
- <tr><td valign="top"><a href="#connect-3">connect/3</a></td><td>Connect signal to slot.</td></tr>
- <tr><td valign="top"><a href="#disconnect-3">disconnect/3</a></td><td>Disconnect signal and slot.</td></tr>
- <tr><td valign="top"><a href="#emit-2">emit/2</a></td><td>Emit the signal.</td></tr>
- <tr><td valign="top"><a href="#emit_signal-3">emit_signal/3</a></td><td>Emit a single signal.</td></tr>
- <tr><td valign="top"><a href="#handle_call-3">handle_call/3</a></td><td></td></tr>
- <tr><td valign="top"><a href="#handle_cast-2">handle_cast/2</a></td><td></td></tr>
- <tr><td valign="top"><a href="#handle_info-2">handle_info/2</a></td><td></td></tr>
- <tr><td valign="top"><a href="#init-1">init/1</a></td><td></td></tr>
- <tr><td valign="top"><a href="#item_count-1">item_count/1</a></td><td>Return how many items there.</td></tr>
- <tr><td valign="top"><a href="#key-1">key/1</a></td><td></td></tr>
- <tr><td valign="top"><a href="#key-2">key/2</a></td><td></td></tr>
- <tr><td valign="top"><a href="#slot_count-1">slot_count/1</a></td><td>Return how many slots there are connected.</td></tr>
- <tr><td valign="top"><a href="#slots-2">slots/2</a></td><td>Return the slots connected to this signal.</td></tr>
- <tr><td valign="top"><a href="#start_link-1">start_link/1</a></td><td>.</td></tr>
- <tr><td valign="top"><a href="#stop-1">stop/1</a></td><td>Stop the module..</td></tr>
- <tr><td valign="top"><a href="#terminate-2">terminate/2</a></td><td></td></tr>
- </table>
- <h2><a name="functions">Function Details</a></h2>
- <h3 class="function"><a name="code_change-3">code_change/3</a></h3>
- <div class="spec">
- <p><tt>code_change(OldVsn, State, Extra) -> any()</tt></p>
- </div>
- <h3 class="function"><a name="connect-3">connect/3</a></h3>
- <div class="spec">
- <p><tt>connect(Signal, Slot, Context) -> any()</tt></p>
- </div><p>Connect signal to slot
- </p>
- <h3 class="function"><a name="disconnect-3">disconnect/3</a></h3>
- <div class="spec">
- <p><tt>disconnect(Signal, Slot, Context) -> any()</tt></p>
- </div><p>Disconnect signal and slot
- </p>
- <h3 class="function"><a name="emit-2">emit/2</a></h3>
- <div class="spec">
- <p><tt>emit(Signal, Context) -> any()</tt></p>
- </div><p>Emit the signal. Calls the connected slots..
- </p>
- <h3 class="function"><a name="emit_signal-3">emit_signal/3</a></h3>
- <div class="spec">
- <p><tt>emit_signal(Signal, Slot, Context) -> any()</tt></p>
- </div><p>Emit a single signal
- </p>
- <h3 class="function"><a name="handle_call-3">handle_call/3</a></h3>
- <div class="spec">
- <p><tt>handle_call(Message, From, State) -> any()</tt></p>
- </div>
- <h3 class="function"><a name="handle_cast-2">handle_cast/2</a></h3>
- <div class="spec">
- <p><tt>handle_cast(Message, State) -> any()</tt></p>
- </div>
- <h3 class="function"><a name="handle_info-2">handle_info/2</a></h3>
- <div class="spec">
- <p><tt>handle_info(Info, State) -> any()</tt></p>
- </div>
- <h3 class="function"><a name="init-1">init/1</a></h3>
- <div class="spec">
- <p><tt>init(Args) -> any()</tt></p>
- </div>
- <h3 class="function"><a name="item_count-1">item_count/1</a></h3>
- <div class="spec">
- <p><tt>item_count(Context) -> any()</tt></p>
- </div><p>Return how many items there
- </p>
- <h3 class="function"><a name="key-1">key/1</a></h3>
- <div class="spec">
- <p><tt>key(Signal) -> any()</tt></p>
- </div>
- <h3 class="function"><a name="key-2">key/2</a></h3>
- <div class="spec">
- <p><tt>key(X1, Tags) -> any()</tt></p>
- </div>
- <h3 class="function"><a name="slot_count-1">slot_count/1</a></h3>
- <div class="spec">
- <p><tt>slot_count(Context) -> any()</tt></p>
- </div><p>Return how many slots there are connected
- </p>
- <h3 class="function"><a name="slots-2">slots/2</a></h3>
- <div class="spec">
- <p><tt>slots(Signal, Context) -> any()</tt></p>
- </div><p>Return the slots connected to this signal
- </p>
- <h3 class="function"><a name="start_link-1">start_link/1</a></h3>
- <div class="spec">
- <p><tt>start_link(Args) -> any()</tt></p>
- </div><p>
- </p>
- <h3 class="function"><a name="stop-1">stop/1</a></h3>
- <div class="spec">
- <p><tt>stop(Context) -> any()</tt></p>
- </div><p>Stop the module..
- </p>
- <h3 class="function"><a name="terminate-2">terminate/2</a></h3>
- <div class="spec">
- <p><tt>terminate(Reason, State) -> any()</tt></p>
- </div>
- <hr>
- <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>
- <p><i>Generated by EDoc, Aug 12 2011, 19:36:12.</i></p>
- </body>
- </html>