deoEnableTrigger
deoEnableTrigger(
g_application
[ l_args ]
)
=> t / nil
Description
Determines if the application is enabled for use by the current user. The enable trigger will normally do any appropriate security checks necessary to make this determination. Design Editor calls the enable trigger before installing a plugin and then installs the plugin only if this trigger returns a non-nil value. The default deoEnableTrigger permits a plugin to be installed on top of an application as long as it is pluggable to the application.
If licensing or other restriction is desired, then the plugin code should define the enable trigger. A subplugin application should call next method in its deoEnableTrigger if it requires the licensing of the super plugin application.
Arguments
Value Returned
|
Returns |
|
Examples
defmethod( deoEnableTrigger ((this MyPlugin) @optional args)
(and (callNextMethod this args) (check_my_license this)))
Return to top