modpol.orgs.process.html 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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>Modules</h2>
  29. <ul class="nowrap">
  30. <li><a href="../modules/modpol.interactions.html">modpol.interactions</a></li>
  31. <li><a href="../modules/add_child_org_consent.html">add_child_org_consent</a></li>
  32. <li><a href="../modules/change_modules.html">change_modules</a></li>
  33. <li><a href="../modules/change_modules.html">change_modules</a></li>
  34. <li><a href="../modules/consent.html">consent</a></li>
  35. <li><a href="../modules/create_token.html">create_token</a></li>
  36. <li><a href="../modules/defer_consent.html">defer_consent</a></li>
  37. <li><a href="../modules/display_processes.html">display_processes</a></li>
  38. <li><a href="../modules/join_org.html">join_org</a></li>
  39. <li><a href="../modules/join_org_consent.html">join_org_consent</a></li>
  40. <li><a href="../modules/leave_org.html">leave_org</a></li>
  41. <li><a href="../modules/message_org.html">message_org</a></li>
  42. <li><a href="../modules/randomizer.html">randomizer</a></li>
  43. <li><a href="../modules/remove_child_consent.html">remove_child_consent</a></li>
  44. <li><a href="../modules/remove_member_consent.html">remove_member_consent</a></li>
  45. <li><a href="../modules/remove_org.html">remove_org</a></li>
  46. <li><a href="../modules/remove_org_consent.html">remove_org_consent</a></li>
  47. <li><a href="../modules/remove_process.html">remove_process</a></li>
  48. <li><a href="../modules/rename_org_consent.html">rename_org_consent</a></li>
  49. <li><a href="../modules/send_token.html">send_token</a></li>
  50. <li><a href="../modules/module_template.html">module_template</a></li>
  51. <li><a href="../modules/tokenomics.html">tokenomics</a></li>
  52. <li><a href="../modules/modpol.orgs.base.html">modpol.orgs.base</a></li>
  53. <li><strong>modpol.orgs.process</strong></li>
  54. <li><a href="../modules/modpol.util.misc.html">modpol.util.misc</a></li>
  55. <li><a href="../modules/modpol_minetest.api.html">modpol_minetest.api</a></li>
  56. <li><a href="../modules/priv_to_org.html">priv_to_org</a></li>
  57. <li><a href="../modules/modpol_minetest.overrides.interactions.html">modpol_minetest.overrides.interactions</a></li>
  58. </ul>
  59. </div>
  60. <div id="content">
  61. <h1>Module <code>modpol.orgs.process</code></h1>
  62. <p>Process functions for orgs</p>
  63. <p></p>
  64. <h2><a href="#Functions">Functions</a></h2>
  65. <table class="function_list">
  66. <tr>
  67. <td class="name" nowrap><a href="#modpol.orgs.call_module">modpol.orgs.call_module (module_slug, intiator, config, result)</a></td>
  68. <td class="summary">Call modules</td>
  69. </tr>
  70. <tr>
  71. <td class="name" nowrap><a href="#modpol.orgs.get_root_process">modpol.orgs.get_root_process (id)</a></td>
  72. <td class="summary">Get the root process of the given id</td>
  73. </tr>
  74. <tr>
  75. <td class="name" nowrap><a href="#modpol.orgs.delete_process">modpol.orgs.delete_process (id)</a></td>
  76. <td class="summary">Delete the process given id</td>
  77. </tr>
  78. <tr>
  79. <td class="name" nowrap><a href="#modpol.orgs:delete_process_tree">modpol.orgs:delete_process_tree (id)</a></td>
  80. <td class="summary">Delete process tree by id</td>
  81. </tr>
  82. <tr>
  83. <td class="name" nowrap><a href="#modpol.orgs:add_pending_action">modpol.orgs:add_pending_action (process_id, user, callback)</a></td>
  84. <td class="summary">Add a new pending action</td>
  85. </tr>
  86. <tr>
  87. <td class="name" nowrap><a href="#modpol.orgs:remove_pending_action">modpol.orgs:remove_pending_action (process_id, user)</a></td>
  88. <td class="summary">Remove a pending action</td>
  89. </tr>
  90. <tr>
  91. <td class="name" nowrap><a href="#modpol.orgs:wipe_pending_actions">modpol.orgs:wipe_pending_actions (process_id)</a></td>
  92. <td class="summary">Wipe all pending actions for process</td>
  93. </tr>
  94. <tr>
  95. <td class="name" nowrap><a href="#modpol.orgs:has_pending_actions">modpol.orgs:has_pending_actions (user)</a></td>
  96. <td class="summary">Check if there are pending actions for user</td>
  97. </tr>
  98. <tr>
  99. <td class="name" nowrap><a href="#modpol.orgs:interact">modpol.orgs:interact (process_id, user)</a></td>
  100. <td class="summary">Interact a user with given process</td>
  101. </tr>
  102. </table>
  103. <br/>
  104. <br/>
  105. <h2 class="section-header "><a name="Functions"></a>Functions</h2>
  106. <dl class="function">
  107. <dt>
  108. <a name = "modpol.orgs.call_module"></a>
  109. <strong>modpol.orgs.call_module (module_slug, intiator, config, result)</strong>
  110. </dt>
  111. <dd>
  112. Call modules
  113. <h3>Parameters:</h3>
  114. <ul>
  115. <li><span class="parameter">module_slug</span>
  116. Same as module name
  117. </li>
  118. <li><span class="parameter">intiator</span>
  119. Initiator for module
  120. </li>
  121. <li><span class="parameter">config</span>
  122. Config for module
  123. </li>
  124. <li><span class="parameter">result</span>
  125. </li>
  126. </ul>
  127. </dd>
  128. <dt>
  129. <a name = "modpol.orgs.get_root_process"></a>
  130. <strong>modpol.orgs.get_root_process (id)</strong>
  131. </dt>
  132. <dd>
  133. Get the root process of the given id
  134. <h3>Parameters:</h3>
  135. <ul>
  136. <li><span class="parameter">id</span>
  137. </li>
  138. </ul>
  139. <h3>Returns:</h3>
  140. <ol>
  141. root process
  142. </ol>
  143. </dd>
  144. <dt>
  145. <a name = "modpol.orgs.delete_process"></a>
  146. <strong>modpol.orgs.delete_process (id)</strong>
  147. </dt>
  148. <dd>
  149. Delete the process given id
  150. <h3>Parameters:</h3>
  151. <ul>
  152. <li><span class="parameter">id</span>
  153. </li>
  154. </ul>
  155. </dd>
  156. <dt>
  157. <a name = "modpol.orgs:delete_process_tree"></a>
  158. <strong>modpol.orgs:delete_process_tree (id)</strong>
  159. </dt>
  160. <dd>
  161. Delete process tree by id
  162. <h3>Parameters:</h3>
  163. <ul>
  164. <li><span class="parameter">id</span>
  165. Id of process tree
  166. </li>
  167. </ul>
  168. </dd>
  169. <dt>
  170. <a name = "modpol.orgs:add_pending_action"></a>
  171. <strong>modpol.orgs:add_pending_action (process_id, user, callback)</strong>
  172. </dt>
  173. <dd>
  174. Add a new pending action
  175. <h3>Parameters:</h3>
  176. <ul>
  177. <li><span class="parameter">process_id</span>
  178. Process id
  179. </li>
  180. <li><span class="parameter">user</span>
  181. User adding the action
  182. </li>
  183. <li><span class="parameter">callback</span>
  184. </li>
  185. </ul>
  186. </dd>
  187. <dt>
  188. <a name = "modpol.orgs:remove_pending_action"></a>
  189. <strong>modpol.orgs:remove_pending_action (process_id, user)</strong>
  190. </dt>
  191. <dd>
  192. Remove a pending action
  193. <h3>Parameters:</h3>
  194. <ul>
  195. <li><span class="parameter">process_id</span>
  196. Process id to be removed
  197. </li>
  198. <li><span class="parameter">user</span>
  199. </li>
  200. </ul>
  201. </dd>
  202. <dt>
  203. <a name = "modpol.orgs:wipe_pending_actions"></a>
  204. <strong>modpol.orgs:wipe_pending_actions (process_id)</strong>
  205. </dt>
  206. <dd>
  207. Wipe all pending actions for process
  208. <h3>Parameters:</h3>
  209. <ul>
  210. <li><span class="parameter">process_id</span>
  211. </li>
  212. </ul>
  213. </dd>
  214. <dt>
  215. <a name = "modpol.orgs:has_pending_actions"></a>
  216. <strong>modpol.orgs:has_pending_actions (user)</strong>
  217. </dt>
  218. <dd>
  219. Check if there are pending actions for user
  220. <h3>Parameters:</h3>
  221. <ul>
  222. <li><span class="parameter">user</span>
  223. User
  224. </li>
  225. </ul>
  226. <h3>Returns:</h3>
  227. <ol>
  228. True if there are pending actions for a user, false if not
  229. </ol>
  230. </dd>
  231. <dt>
  232. <a name = "modpol.orgs:interact"></a>
  233. <strong>modpol.orgs:interact (process_id, user)</strong>
  234. </dt>
  235. <dd>
  236. Interact a user with given process
  237. <h3>Parameters:</h3>
  238. <ul>
  239. <li><span class="parameter">process_id</span>
  240. </li>
  241. <li><span class="parameter">user</span>
  242. </li>
  243. </ul>
  244. </dd>
  245. </dl>
  246. </div> <!-- id="content" -->
  247. </div> <!-- id="main" -->
  248. <div id="about">
  249. <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
  250. <i style="float:right;">Last updated 2022-01-23 18:18:51 </i>
  251. </div> <!-- id="about" -->
  252. </div> <!-- id="container" -->
  253. </body>
  254. </html>