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
$modelSurvey  : Survey
$saveService  : SaveService
$yiiDb  : CDbConnection

Methods

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

Properties

Methods

deleteAnswer()

Delete answer from a question.

public deleteAnswer( $surveyId,  $answerId) : void

All language entries for this answer will be deleted.

Parameters
$surveyId :
$answerId :

        
On this page

Search results