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