/** * Check whether survey question can show * * @return bool */ public function isDisplayed() { if ($this->_authSession->getHideSurveyQuestion() || false == $this->_authorization->isAllowed(null) || $this->_survey->isSurveyViewed() || false == $this->_survey->isSurveyUrlValid()) { return false; } return true; }
/** * Return url for iframe source * * @return string|null */ public function getIframeSourceUrl() { if (!$this->_survey->isSurveyUrlValid() || $this->_installer->getHideIframe()) { return null; } return $this->_survey->getSurveyUrl(); }