Added LDoc comments for new files, ready to merge pt. 2
This commit is contained in:
@ -55,7 +55,10 @@ function modpol.orgs:call_module(module_slug, initiator, config, result, parent_
|
||||
return index
|
||||
end
|
||||
|
||||
|
||||
--- Get the root process of the given id
|
||||
-- @function modpol.orgs.get_root_process
|
||||
-- @param id
|
||||
-- @return root process
|
||||
function modpol.orgs:get_root_process(id)
|
||||
local process = self.processes[id]
|
||||
while (process.parent_id) do
|
||||
@ -64,6 +67,9 @@ function modpol.orgs:get_root_process(id)
|
||||
return process
|
||||
end
|
||||
|
||||
--- Delete the process given id
|
||||
-- @function modpol.orgs.delete_process
|
||||
-- @param id
|
||||
function modpol.orgs:delete_process(id)
|
||||
local process = self.processes[id]
|
||||
if process and process ~= "deleted" then
|
||||
|
Reference in New Issue
Block a user