Example #1
0
 /**
  * @param string $scenario
  * @param int $iSurveyId
  */
 public function __construct($iSurveyId = null, $scenario = 'insert')
 {
     if (!isset($iSurveyId)) {
         $iSurveyId = Response::getLastSurveyId();
     }
     $this->surveyId = $iSurveyId;
     parent::__construct($scenario);
 }