Translations:Plugins/141/en
From LimeSurvey Manual
<syntaxhighlight lang="php">
public function beforeSurveySettings()
{
$event = $this->event;
$surveyId = intval($event->get('survey'));
$survey = Survey::model()->findByPk($surveyId);