Exemplo n.º 1
0
 /**
  * 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;
 }
Exemplo n.º 2
0
 /**
  * Return url for iframe source
  *
  * @return string|null
  */
 public function getIframeSourceUrl()
 {
     if (!$this->_survey->isSurveyUrlValid() || $this->_installer->getHideIframe()) {
         return null;
     }
     return $this->_survey->getSurveyUrl();
 }