예제 #1
0
파일: Survey.php 프로젝트: aiesh/magento2
 /**
  * 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;
 }
예제 #2
0
파일: End.php 프로젝트: aiesh/magento2
 /**
  * Return url for iframe source
  *
  * @return string|null
  */
 public function getIframeSourceUrl()
 {
     if (!$this->_survey->isSurveyUrlValid() || $this->_installer->getHideIframe()) {
         return null;
     }
     return $this->_survey->getSurveyUrl();
 }