LimeSurvey API - Master branch

QuestionAggregateService
in package

Question Aggregate Service

Service class for editing question data.

Dependencies are injected to enable mocking.

Table of Contents

Properties

$deleteService  : DeleteService
$modelPermission  : Permission
$saveService  : SaveService
$yiiDb  : CDbConnection

Methods

__construct()  : mixed
checkUpdatePermission()  : void
delete()  : mixed
deleteAnswer()  : void
Delete answer from a question.
deleteMany()  : mixed
save()  : Question
Based on QuestionAdministrationController::actionSaveQuestionData()

Properties

Methods

delete()

public delete(mixed $surveyId, mixed $questionId) : mixed
Parameters
$surveyId : mixed
$questionId : mixed

deleteAnswer()

Delete answer from a question.

public deleteAnswer( $surveyId,  $answerId) : void

All language entries for this answer will be deleted.

Parameters
$surveyId :
$answerId :

deleteMany()

public deleteMany(mixed $surveyId, mixed $questionIds) : mixed
Parameters
$surveyId : mixed
$questionIds : mixed

        
On this page

Search results