GetResourceACLRequests: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (→See Also) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{server function}} | {{server function}} | ||
This function retrieves the ACL request section from the meta.xml file of the given resource. | This function retrieves the ACL request section from the meta.xml file of the given resource. | ||
==Syntax== | ==Syntax== | ||
Line 9: | Line 6: | ||
table getResourceACLRequests ( resource theResource ) | table getResourceACLRequests ( resource theResource ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[resource]]:getACLRequests|aclRequests}} | |||
===Required Arguments=== | ===Required Arguments=== | ||
Line 40: | Line 38: | ||
{{Requirements|1.2|n/a|}} | {{Requirements|1.2|n/a|}} | ||
==See Also== | ==See Also== | ||
{{Resource_functions}} | {{Resource_functions|server}} |
Revision as of 22:46, 6 September 2024
This function retrieves the ACL request section from the meta.xml file of the given resource.
Syntax
table getResourceACLRequests ( resource theResource )
OOP Syntax Help! I don't understand this!
- Method: resource:getACLRequests(...)
- Variable: .aclRequests
Required Arguments
- theResource: the resource to get the ACL requests for.
Returns
Returns a table with the ACL requests for the given resource, or false if the resource is not valid. A valid resource with no ACL requests will return an empty table.
Example
This function lists ACL requests from all resources in the client console.
function showAllACLRequests() for _,resource in ipairs(getResources()) do local requests = getResourceACLRequests (resource) if #requests > 0 then outputConsole( getResourceName(resource).." has "..#requests.." ACL request(s)" ) for i,request in ipairs(requests) do outputConsole( tostring(i) .. " name:" .. request.name .. " access:" .. tostring(request.access) .. " pending:" .. tostring(request.pending) .. " who:" .. request.who .. " date:" .. request.date ) end end end end
Requirements
This template will be deleted.
See Also
- addResourceConfig
- addResourceMap
- callRemote
- copyResource
- createResource
- deleteResource
- getResourceACLRequests
- getResourceInfo
- getResourceLastStartTime
- getResourceLoadFailureReason
- getResourceLoadTime
- getResourceMapRootElement
- getResourceOrganizationalPath
- getResources
- isResourceArchived
- isResourceProtected
- refreshResources
- removeResourceFile
- renameResource
- restartResource
- setResourceInfo
- startResource
- stopResource
- updateResourceACLRequest
- Shared
- abortRemoteRequest
- call
- fetchRemote
- getResourceConfig
- getResourceDynamicElementRoot
- getResourceExportedFunctions
- getResourceFromName
- getResourceName
- getResourceRootElement
- getResourceState
- getThisResource
- getRemoteRequests
- getRemoteRequestInfo