modpol.orgs.process.html 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5. <head>
  6. <title>Reference</title>
  7. <link rel="stylesheet" href="../ldoc.css" type="text/css" />
  8. </head>
  9. <body>
  10. <div id="container">
  11. <div id="product">
  12. <div id="product_logo"></div>
  13. <div id="product_name"><big><b></b></big></div>
  14. <div id="product_description"></div>
  15. </div> <!-- id="product" -->
  16. <div id="main">
  17. <!-- Menu -->
  18. <div id="navigation">
  19. <br/>
  20. <h1>modpol</h1>
  21. <ul>
  22. <li><a href="../index.html">Index</a></li>
  23. </ul>
  24. <h2>Contents</h2>
  25. <ul>
  26. <li><a href="#Functions">Functions</a></li>
  27. </ul>
  28. <h2>Basic Functions</h2>
  29. <ul class="nowrap">
  30. <li><a href="../modules/modpol.interactions.html">modpol.interactions</a></li>
  31. <li><a href="../modules/modpol.orgs.base.html">modpol.orgs.base</a></li>
  32. <li><a href="../modules/modpol.orgs.process.html">modpol.orgs.process</a></li>
  33. <li><a href="../modules/modpol.util.misc.html">modpol.util.misc</a></li>
  34. <li><a href="../modules/modpol_minetest.api.html">modpol_minetest.api</a></li>
  35. </ul>
  36. <h2>Core Modules</h2>
  37. <ul class="nowrap">
  38. <li><a href="../modules/add_child_org_consent.html">add_child_org_consent</a></li>
  39. <li><a href="../modules/change_modules.html">change_modules</a></li>
  40. <li><a href="../modules/consent.html">consent</a></li>
  41. <li><a href="../modules/join_org.html">join_org</a></li>
  42. <li><a href="../modules/join_org_consent.html">join_org_consent</a></li>
  43. <li><a href="../modules/leave_org.html">leave_org</a></li>
  44. <li><a href="../modules/message_org.html">message_org</a></li>
  45. <li><a href="../modules/remove_child_consent.html">remove_child_consent</a></li>
  46. <li><a href="../modules/remove_member_consent.html">remove_member_consent</a></li>
  47. <li><a href="../modules/remove_org.html">remove_org</a></li>
  48. <li><a href="../modules/remove_org_consent.html">remove_org_consent</a></li>
  49. <li><a href="../modules/rename_org_consent.html">rename_org_consent</a></li>
  50. <li><a href="../modules/module_template.html">module_template</a></li>
  51. </ul>
  52. <h2>Minetest Modules</h2>
  53. <ul class="nowrap">
  54. <li><a href="../modules/priv_to_org.html">priv_to_org</a></li>
  55. </ul>
  56. </div>
  57. <div id="content">
  58. <h1>Module <code>modpol.orgs.process</code></h1>
  59. <p>Process functions for orgs</p>
  60. <p></p>
  61. <h2><a href="#Functions">Functions</a></h2>
  62. <table class="function_list">
  63. <tr>
  64. <td class="name" nowrap><a href="#modpol.orgs.call_module">modpol.orgs.call_module (module_slug, intiator, config, result)</a></td>
  65. <td class="summary">Call modules</td>
  66. </tr>
  67. <tr>
  68. <td class="name" nowrap><a href="#modpol.orgs:delete_process">modpol.orgs:delete_process (id)</a></td>
  69. <td class="summary">Delete process by id</td>
  70. </tr>
  71. <tr>
  72. <td class="name" nowrap><a href="#modpol.orgs:add_pending_action">modpol.orgs:add_pending_action (process_id, user, callback)</a></td>
  73. <td class="summary">Add a new pending action</td>
  74. </tr>
  75. <tr>
  76. <td class="name" nowrap><a href="#modpol.orgs:remove_pending_action">modpol.orgs:remove_pending_action (process_id, user)</a></td>
  77. <td class="summary">Remove a pending action</td>
  78. </tr>
  79. <tr>
  80. <td class="name" nowrap><a href="#modpol.orgs:wipe_pending_actions">modpol.orgs:wipe_pending_actions (process_id)</a></td>
  81. <td class="summary">Wipe all pending actions for process</td>
  82. </tr>
  83. <tr>
  84. <td class="name" nowrap><a href="#modpol.orgs:has_pending_actions">modpol.orgs:has_pending_actions (user)</a></td>
  85. <td class="summary">Check if there are pending actions for user</td>
  86. </tr>
  87. <tr>
  88. <td class="name" nowrap><a href="#modpol.orgs:interact">modpol.orgs:interact (process_id, user)</a></td>
  89. <td class="summary">Interact a user with given process</td>
  90. </tr>
  91. </table>
  92. <br/>
  93. <br/>
  94. <h2 class="section-header "><a name="Functions"></a>Functions</h2>
  95. <dl class="function">
  96. <dt>
  97. <a name = "modpol.orgs.call_module"></a>
  98. <strong>modpol.orgs.call_module (module_slug, intiator, config, result)</strong>
  99. </dt>
  100. <dd>
  101. Call modules
  102. <h3>Parameters:</h3>
  103. <ul>
  104. <li><span class="parameter">module_slug</span>
  105. Same as module name
  106. </li>
  107. <li><span class="parameter">intiator</span>
  108. Initiator for module
  109. </li>
  110. <li><span class="parameter">config</span>
  111. Config for module
  112. </li>
  113. <li><span class="parameter">result</span>
  114. </li>
  115. </ul>
  116. </dd>
  117. <dt>
  118. <a name = "modpol.orgs:delete_process"></a>
  119. <strong>modpol.orgs:delete_process (id)</strong>
  120. </dt>
  121. <dd>
  122. Delete process by id
  123. <h3>Parameters:</h3>
  124. <ul>
  125. <li><span class="parameter">id</span>
  126. Id of process
  127. </li>
  128. </ul>
  129. </dd>
  130. <dt>
  131. <a name = "modpol.orgs:add_pending_action"></a>
  132. <strong>modpol.orgs:add_pending_action (process_id, user, callback)</strong>
  133. </dt>
  134. <dd>
  135. Add a new pending action
  136. <h3>Parameters:</h3>
  137. <ul>
  138. <li><span class="parameter">process_id</span>
  139. Process id
  140. </li>
  141. <li><span class="parameter">user</span>
  142. User adding the action
  143. </li>
  144. <li><span class="parameter">callback</span>
  145. </li>
  146. </ul>
  147. </dd>
  148. <dt>
  149. <a name = "modpol.orgs:remove_pending_action"></a>
  150. <strong>modpol.orgs:remove_pending_action (process_id, user)</strong>
  151. </dt>
  152. <dd>
  153. Remove a pending action
  154. <h3>Parameters:</h3>
  155. <ul>
  156. <li><span class="parameter">process_id</span>
  157. Process id to be removed
  158. </li>
  159. <li><span class="parameter">user</span>
  160. </li>
  161. </ul>
  162. </dd>
  163. <dt>
  164. <a name = "modpol.orgs:wipe_pending_actions"></a>
  165. <strong>modpol.orgs:wipe_pending_actions (process_id)</strong>
  166. </dt>
  167. <dd>
  168. Wipe all pending actions for process
  169. <h3>Parameters:</h3>
  170. <ul>
  171. <li><span class="parameter">process_id</span>
  172. </li>
  173. </ul>
  174. </dd>
  175. <dt>
  176. <a name = "modpol.orgs:has_pending_actions"></a>
  177. <strong>modpol.orgs:has_pending_actions (user)</strong>
  178. </dt>
  179. <dd>
  180. Check if there are pending actions for user
  181. <h3>Parameters:</h3>
  182. <ul>
  183. <li><span class="parameter">user</span>
  184. User
  185. </li>
  186. </ul>
  187. <h3>Returns:</h3>
  188. <ol>
  189. True if there are pending actions for a user, false if not
  190. </ol>
  191. </dd>
  192. <dt>
  193. <a name = "modpol.orgs:interact"></a>
  194. <strong>modpol.orgs:interact (process_id, user)</strong>
  195. </dt>
  196. <dd>
  197. Interact a user with given process
  198. <h3>Parameters:</h3>
  199. <ul>
  200. <li><span class="parameter">process_id</span>
  201. </li>
  202. <li><span class="parameter">user</span>
  203. </li>
  204. </ul>
  205. </dd>
  206. </dl>
  207. </div> <!-- id="content" -->
  208. </div> <!-- id="main" -->
  209. <div id="about">
  210. <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
  211. <i style="float:right;">Last updated 2022-01-20 10:54:01 </i>
  212. </div> <!-- id="about" -->
  213. </div> <!-- id="container" -->
  214. </body>
  215. </html>