LimeSurvey API - Master branch

CopySurveyOptions
in package

This class is a data provider containing all options that could be selected for copying a survey.

Table of Contents

Properties

$answerOptions  : bool
$conditions  : bool
$newTitle  : string|null
$permissions  : bool
$quotas  : bool
$resetResponseStartId  : bool
$resetStartAndEndDate  : bool
$resourcesAndLinks  : bool

Methods

__construct()  : mixed
Sets an initial state for copying options.
getNewTitle()  : string|null
isAnswerOptions()  : bool
isConditions()  : bool
isPermissions()  : bool
isQuotas()  : bool
isResetResponseStartId()  : bool
isResourcesAndLinks()  : bool
isStartAndEndDate()  : bool
setAnswerOptions()  : void
setConditions()  : void
setNewTitle()  : void
setPermissions()  : void
setQuotas()  : void
setResetResponseStartId()  : void
setResourcesAndLinks()  : void
setStartAndEndDate()  : void

Properties

$answerOptions

private bool $answerOptions

whether to copy answer options of the questions of a survey

$newTitle

private string|null $newTitle = null

custom title for the copied survey (null = use default " - Copy" suffix)

$resetResponseStartId

private bool $resetResponseStartId

whether to reset a surveys response start-id

$resetStartAndEndDate

private bool $resetStartAndEndDate

whether to reset a surveys star and end date

private bool $resourcesAndLinks

whether to copy resources and links

Methods

__construct()

Sets an initial state for copying options.

public __construct() : mixed

The initial state is, that everything is copied and nothing is reset.

getNewTitle()

public getNewTitle() : string|null
Return values
string|null

Custom title for the copied survey, or null to use default.

isResetResponseStartId()

public isResetResponseStartId() : bool
Return values
bool
public isResourcesAndLinks() : bool
Return values
bool

setAnswerOptions()

public setAnswerOptions(bool $answerOptions) : void
Parameters
$answerOptions : bool

setConditions()

public setConditions(bool $conditions) : void
Parameters
$conditions : bool

setNewTitle()

public setNewTitle(string|null $newTitle) : void
Parameters
$newTitle : string|null

Custom title for the copied survey, or null to use default.

setPermissions()

public setPermissions(bool $permissions) : void
Parameters
$permissions : bool

setQuotas()

public setQuotas(bool $quotas) : void
Parameters
$quotas : bool

setResetResponseStartId()

public setResetResponseStartId(bool $resetResponseStartId) : void
Parameters
$resetResponseStartId : bool
public setResourcesAndLinks(bool $resourcesAndLinks) : void
Parameters
$resourcesAndLinks : bool

setStartAndEndDate()

public setStartAndEndDate(bool $resetStartAndEndDate) : void
Parameters
$resetStartAndEndDate : bool

        
On this page

Search results