Beispiel #1
0
 /**
  * Return url for iframe source
  *
  * @return string
  */
 public function getIframeSourceUrl()
 {
     if (!Mage_AdminNotification_Model_Survey::isSurveyUrlValid() || Mage::getSingleton('install/installer')->getHideIframe()) {
         return null;
     }
     return Mage_AdminNotification_Model_Survey::getSurveyUrl();
 }
Beispiel #2
0
 /**
  * Check whether survey question can show
  *
  * @return boolean
  */
 public function canShow()
 {
     $adminSession = Mage::getSingleton('admin/session');
     $seconds = intval(date('s', time()));
     if ($adminSession->getHideSurveyQuestion() || !$adminSession->isAllowed('all') || Mage_AdminNotification_Model_Survey::isSurveyViewed() || !Mage_AdminNotification_Model_Survey::isSurveyUrlValid()) {
         return false;
     }
     return true;
 }
Beispiel #3
0
 /**
  * Check whether survey question can show
  *
  * @return boolean
  */
 public function canShow()
 {
     $adminSession = Mage::getSingleton('Mage_Backend_Model_Auth_Session');
     $seconds = intval(date('s', time()));
     if ($adminSession->getHideSurveyQuestion() || !Mage::getSingleton('Mage_Core_Model_Authorization')->isAllowed(Mage_Backend_Model_Acl_Config::ACL_RESOURCE_ALL) || Mage_AdminNotification_Model_Survey::isSurveyViewed() || !Mage_AdminNotification_Model_Survey::isSurveyUrlValid()) {
         return false;
     }
     return true;
 }