Class LSBaseController
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 |
---|---|
actionIndex(): false|string|array<mixed,string>|null
todo | : document me ... |
---|---|
Throws |
|
false|string|array<mixed,string>|null
addQuestionToList( $action,integer $gid,array $field, $questionType,string $surveyformat, $isPreviousPageQuestion, &$questionList)
todo | : document me |
---|---|
integer
array
string
beforeRender(string $view): boolean
todo REFACTORING find all actions that set $aData['surveyid'] and change the layout directly in the action
string
boolean
collectQuestionReplacements( $surveyid,null $gid = null,null $qid = null): array
todo | : document me |
---|
null
null
array
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()
getChildQuestions(array $questions): array
todo | : document me |
---|
array
array
getNewTypeResponse( $fieldtype,null $surveyid = null,null $gid = null,null $qid = null): array
todo | document me .. |
---|
null
null
null
array
getQuestionList( $action,integer $gid,integer $qid,array $fieldmap, $questionType,string $surveyformat): array
integer
integer
array
string
array
getReplacementFields(string $fieldtype,integer $surveyid): array
string
The field to collect replacements for
integer
The transferred surveyid
array
loadHelper(string $helper): void
access | public |
---|
string
loadLibrary(string $library): void
access | public |
---|
string
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 |
---|---|
shouldAddQuestion( $action,integer $gid,integer $qid,array $question, $previousQuestion)
todo | : document me .. |
---|---|
integer
integer
array
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