WoW:RestrictedEnvironment: Difference between revisions

m
Move page script moved page RestrictedEnvironment to WoW:RestrictedEnvironment without leaving a redirect
(Created page with '{{uitech}} '''Restricted environment''' refers to the environment in which restricted addon code (SecureHandler snippets) is executed. A limited subset of the ...')
 
m (Move page script moved page RestrictedEnvironment to WoW:RestrictedEnvironment without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 215: Line 215:
== Control methods ==
== Control methods ==
Additional methods are available as part of the control table; allowing functionality somewhat resembling proper functions within the protected environment.
Additional methods are available as part of the control table; allowing functionality somewhat resembling proper functions within the protected environment.
; control:CallMethod("methodName", ...) : insecurely calls methodName method of the restricted environment's owner.
; control:CallMethod("methodName", ...) : insecurely calls methodName method of the restricted environment's owner.
; control:Run("body", ...) : executes Lua code in body with the provided arguments; self is the handle of the environment's owner.
; control:Run("body", ...) : executes Lua code in body with the provided arguments; self is the handle of the environment's owner.
Line 220: Line 221:
; control:RunAttribute("snippetAttr", ...) : executes the method contained in the snippetAttr attribute of the restricted environment owner with self, ... as arguments.
; control:RunAttribute("snippetAttr", ...) : executes the method contained in the snippetAttr attribute of the restricted environment owner with self, ... as arguments.
; control:ChildUpdate("snippetid", message) : executes the contents of "_childupdate-''snippetid''" (or, if that attribute is nil/false, "_childupdate"), on all protected children (and children of children) of the restricted environment owner with (self, scriptid, message) arguments.
; control:ChildUpdate("snippetid", message) : executes the contents of "_childupdate-''snippetid''" (or, if that attribute is nil/false, "_childupdate"), on all protected children (and children of children) of the restricted environment owner with (self, scriptid, message) arguments.


{{API Trail Secure}}
{{API Trail Secure}}
Anonymous user