SurveyActivator

Service class to activate survey.

todo

Move to models/services/survey/ folder.

package

Default

Methods

__construct

__construct(\Survey $survey)

Arguments

$survey

\Survey

activate

activate(): array
Throws
\CException

Response

array

createResponseTable

createResponseTable(): boolean
Throws
\CDbException
\CException

Response

boolean

createResponseTableKeys

createResponseTableKeys(): void
Throws
\CDbException
\CException

createSurveyDirectory

createSurveyDirectory(): boolean

Response

boolean

createTimingsTable

createTimingsTable(): boolean

Response

boolean

getCollation

getCollation(): string

Response

string

prepareResponsesTable

prepareResponsesTable(): void

prepareSimulateQuery

prepareSimulateQuery(): void

For each question, create the appropriate field(s)

prepareTableDefinition(string $collation,array $sFieldMap): void

Arguments

$collation

string

$sFieldMap

array

prepareTimingsTable

prepareTimingsTable(): void

Set the default_storage_engine for mysql DB

setMySQLDefaultEngine(string $dbEngine)

Arguments

$dbEngine

string

showEventMessages

showEventMessages(\PluginEvent $event): boolean

Arguments

$event

\PluginEvent

Response

boolean

Properties

survey

survey :\Survey
var

Type(s)

\Survey

tableDefinition

tableDefinition :array
var

Type(s)

array

timingsTableDefinition

timingsTableDefinition :array
var

Type(s)

array

error

error :string
var

Type(s)

string

createSurveyDir

createSurveyDir :boolean
var

Type(s)

boolean

isSimulation

isSimulation :boolean
var

Type(s)

boolean