LimeSurvey API - Master branch

SurveyDetailService
in package

Table of Contents

Constants

CACHE_DURATION  = 3600
CACHE_KEY_PREFIX  = 'survey_detail_'

Methods

getCache()  : bool|string
Gets the survey cache if exists and false otherwise
getSurveyFromEntityMap()  : Survey|null
Gets survey object from entity map if possible
removeCache()  : void
Removes the cache for the survey if it exists
saveCache()  : void
Saves the cache
updateSurveyLastModified()  : void
Updates survey's lastmodified timestamp & clears details cache

Constants

Methods

getCache()

Gets the survey cache if exists and false otherwise

public getCache(int $surveyId[, bool $clearCache = false ]) : bool|string
Parameters
$surveyId : int
$clearCache : bool = false
Return values
bool|string

getSurveyFromEntityMap()

Gets survey object from entity map if possible

public getSurveyFromEntityMap(array<string|int, mixed> $entityMap) : Survey|null
Parameters
$entityMap : array<string|int, mixed>
Return values
Survey|null

removeCache()

Removes the cache for the survey if it exists

public removeCache(int $surveyId) : void
Parameters
$surveyId : int

saveCache()

Saves the cache

public saveCache(int $surveyId, array<string|int, mixed> $content) : void
Parameters
$surveyId : int
$content : array<string|int, mixed>

updateSurveyLastModified()

Updates survey's lastmodified timestamp & clears details cache

public updateSurveyLastModified(Survey $survey) : void
Parameters
$survey : Survey

        
On this page

Search results