Class SurveysGroupsPermissionController
this controller will have all the necessary methods from the old AdminController
package | Default |
---|
__construct(string $id,\CWebModule $module = null)
access | public |
---|---|
string
\CWebModule
_checkInstallation(): void
access | protected |
---|---|
accessRules(): array
Only logged in users should have access to actions. All other permissions should be checked in the action itself.
array
actionAddUser(integer $id): void
integer
SurveysGroups id
actionAddUserGroup(integer $id): void
integer
SurveysGroups id
actionDeleteUser(integer $id,integer $uid): void
integer
SurveysGroups id
integer
user id
actionIndex(integer $id): void
Throws |
|
---|
integer
SurveysGroups id
actionSave(integer $id): void
integer
SurveysGroups id
actionViewUser(integer $id,integer $to): void
integer
SurveysGroups id
integer
user id
actionViewUserGroup(integer $id,integer $to): void
integer
SurveysGroups id
integer
group id
beforeRender(string $view): boolean
todo REFACTORING find all actions that set $aData['surveyid'] and change the layout directly in the action
string
boolean
createAbsoluteUrl(string $route,array $params = array(),string $schema = '',string $ampersand = '&'): string
string
the URL route. This should be in the format of 'ControllerID/ActionID'.
array
additional GET parameters (name=>value). Both the name and value will be URL-encoded.
string
schema to use (e.g. http, https). If empty, the schema used for the current request will be used.
string
the token separating name-value pairs in the URL.
string
the constructed URL
customInit()
filters()
loadHelper(string $helper): void
access | public |
---|
string
loadLibrary(string $library): void
access | public |
---|
string
loadModel(integer $id): \SurveysGroups
Check minimal permission to see
Throws |
|
---|
integer
the ID of the model to be loaded
\SurveysGroups
the loaded model
loadPageStates(): array
array
the loaded page states
renderJSON(array $aData, $success = true): void
array
run(string $action): void
TODO: check the dbupdate mechanism, do we really want to check db update before every action??
access | public |
---|---|
Throws |
|
string
sessionControl(): void
todo REFACTORING see comments in mehtod
access | protected |
---|---|
viewUserOrUserGroup(integer $id,integer $to,string $type = 'user'): void
integer
SurveysGroups id
integer
user or group id
string
user or group
defaultAction :
sTemplate :null
var | this is needed for the preview rendering inside the questioneditor |
---|
null
aData :array
var | import for all new controllers/actions (REFACTORING) to pass data before rendering the content |
---|
array
userId :integer
var | userId of the logged in user |
---|
integer
navData :array
var |
---|
array