Class LSBaseController
this controller will have all the necessary methods from the old AdminController
class | ThemeOptionsController |
---|---|
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
actionGetPreviewTag(): string
todo: maybe this action should be moved to surveyAdministrationController (it's used in 'General settings')
Throws |
|
---|
string
| string[] | null
actionImportManifest(): void
for survey theme and question theme
Throws |
|
---|
actionIndex(): void
actionReset(integer $gsid): void
Throws |
|
---|
integer
ID
actionSelectedItems(): void
Throws |
|
---|
actionSetAdminTheme(string $sAdminThemeName): void
string
Admin theme Name
actionUninstall(): void
actionUninstallMultiple(): void
Throws |
|
---|
actionUpdate(integer $id): void
If update is successful, the browser will be redirected to the 'view' page.
Throws |
|
---|
integer
ID of the model
actionUpdateSurvey(): void
If update is successful, the browser will be redirected to the 'view' page.
actionUpdateSurveyGroup(integer $id = null,integer $gsid,null $l = null): void
If update is successful, the browser will be redirected to the 'view' page.
integer
ID of model.
integer
id of survey group
null
?
actionViewModel(integer $id): void
integer
ID of model.
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()
getSurveyIdFromGetRequest(): integer
At the moment there are three namings for a survey id: 'sid' 'surveyid' 'iSurveyID'
Returns the id as integer or null if not exists any of them.
todo | While refactoring (at some point) this function should be removed and only one unique identifier should be used |
---|---|
integer
| null
loadHelper(string $helper): void
access | public |
---|
string
loadLibrary(string $library): void
access | public |
---|
string
loadModel(integer $id,integer|string $gridid = null): \QuestionTheme
If the data model is not found, and HTTP exception will be raised.
Throws |
|
---|
integer
ID
integer|string
Grid ID
\QuestionTheme
| TemplateConfiguration | null
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 |
---|---|
turnAjaxmodeOffAsDefault(\TemplateConfiguration $templateConfiguration): \TemplateConfiguration
\TemplateConfiguration
Configuration of Template
\TemplateConfiguration
updateCommon(\TemplateConfiguration $model,integer|null $sid = null,integer|null $gsid = null): void
\TemplateConfiguration
Template Configuration
integer|null
Survey ID
integer|null
Survey Group ID
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