/doc/modules/mod_search/search_query_notify.html

https://code.google.com/p/zotonic/ · HTML · 58 lines · 48 code · 10 blank · 0 comment · 0 complexity · be4a0d52fd7eb8fc03888663c565fcd4 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>Module search_query_notify</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. <h1>Module search_query_notify</h1>
  11. <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>Notifications for 'query' resources when items are added to them.
  12. <p>Copyright Š 2009-2010 Arjan Scherpenisse
  13. Date: 2009-04-12</p>
  14. <p><b>Authors:</b> Arjan Scherpenisse (<a href="mailto:arjan@scherpenisse.net"><tt>arjan@scherpenisse.net</tt></a>).</p>
  15. <h2><a name="description">Description</a></h2>Notifications for 'query' resources when items are added to them.
  16. <h2><a name="index">Function Index</a></h2>
  17. <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#check_rsc-3">check_rsc/3</a></td><td>Check whether the given resource matches to the queries.</td></tr>
  18. <tr><td valign="top"><a href="#init-1">init/1</a></td><td></td></tr>
  19. <tr><td valign="top"><a href="#send_notifications-3">send_notifications/3</a></td><td></td></tr>
  20. <tr><td valign="top"><a href="#watches_remove-3">watches_remove/3</a></td><td></td></tr>
  21. <tr><td valign="top"><a href="#watches_update-3">watches_update/3</a></td><td></td></tr>
  22. </table>
  23. <h2><a name="functions">Function Details</a></h2>
  24. <h3 class="function"><a name="check_rsc-3">check_rsc/3</a></h3>
  25. <div class="spec">
  26. <p><tt>check_rsc(Id, Watches, Context) -&gt; list()</tt></p>
  27. </div><p>Check whether the given resource matches to the queries. Returns list of matching query resource ids.</p>
  28. <h3 class="function"><a name="init-1">init/1</a></h3>
  29. <div class="spec">
  30. <p><tt>init(Context) -&gt; any()</tt></p>
  31. </div>
  32. <h3 class="function"><a name="send_notifications-3">send_notifications/3</a></h3>
  33. <div class="spec">
  34. <p><tt>send_notifications(Id, Rest, Context) -&gt; any()</tt></p>
  35. </div>
  36. <h3 class="function"><a name="watches_remove-3">watches_remove/3</a></h3>
  37. <div class="spec">
  38. <p><tt>watches_remove(Id, Watches, Context) -&gt; any()</tt></p>
  39. </div>
  40. <h3 class="function"><a name="watches_update-3">watches_update/3</a></h3>
  41. <div class="spec">
  42. <p><tt>watches_update(Id, Watches, Context) -&gt; any()</tt></p>
  43. </div>
  44. <hr>
  45. <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>
  46. <p><i>Generated by EDoc, Aug 12 2011, 19:36:12.</i></p>
  47. </body>
  48. </html>