LimeSurvey API - Master branch

SurveysGroupCreator
in package

Service class for survey group creation.

All dependencies are injected to enable mocking.

Table of Contents

Properties

$messages  : array<string|int, TypedMessage>
$request  : LSHttpRequest
$surveysGroup  : SurveysGroups
$surveysGroupsettings  : SurveysGroupsettings
$user  : LSWebUser

Methods

__construct()  : mixed
getMessages()  : array<string|int, TypedMessage>
Returns the messages of the given type, or all messages if no type is specified.
save()  : bool
Saves the SurveysGroups and SurveysGroupsettings models with data from the request.

Properties

Methods

getMessages()

Returns the messages of the given type, or all messages if no type is specified.

public getMessages([string|null $type = null ]) : array<string|int, TypedMessage>
Parameters
$type : string|null = null
Return values
array<string|int, TypedMessage>

save()

Saves the SurveysGroups and SurveysGroupsettings models with data from the request.

public save() : bool
Tags
todo

What happen if SurveysGroups saved but no SurveysGroupsettings? Transaction?

Return values
bool

True on success.


        
On this page

Search results