Actions

BeforePermissionSetSave: Difference between revisions

From LimeSurvey Manual

(Undo revision 63525 by DenisChenu (talk))
(Undo revision 63524 by DenisChenu (talk))
 
Line 1: Line 1:
'''When'''
'''When'''


This event is fired when specific page is called.
This event is fired when permission is saved via the admin GUI.
 
The url to call the page can be found with : <code>$this->api->createUrl('plugins/direct', array('plugin' => 'pluginClass', 'function' => 'functionName'))<code> a function name is needed to call the event.


'''Input'''
'''Input'''
Line 9: Line 7:
The event receives the following information:
The event receives the following information:


* ''target'': the Class name
* ''aNewPermissions'' The array of new permission
* ''function'': The function parameters
* ''iSurveyID'' The entity id, 0 for global
 
* ''iUserID'' The user id


'''Possible output'''
'''Possible output'''


* Anything. For example a json string.
* none


[[Category:Plugins events]]
[[Category:Plugins events]]

Latest revision as of 17:30, 9 October 2014

When

This event is fired when permission is saved via the admin GUI.

Input

The event receives the following information:

  • aNewPermissions The array of new permission
  • iSurveyID The entity id, 0 for global
  • iUserID The user id

Possible output

  • none