PageRenderTime 49ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/app/code/core/Mage/Install/Block/End.php

https://bitbucket.org/sunil_nextbits/magento2
PHP | 59 lines | 22 code | 3 blank | 34 comment | 3 complexity | 13eddaae9e924aa23baae16ad3a3d946 MD5 | raw file
  1. <?php
  2. /**
  3. * Magento
  4. *
  5. * NOTICE OF LICENSE
  6. *
  7. * This source file is subject to the Open Software License (OSL 3.0)
  8. * that is bundled with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://opensource.org/licenses/osl-3.0.php
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@magentocommerce.com so we can send you a copy immediately.
  14. *
  15. * DISCLAIMER
  16. *
  17. * Do not edit or add to this file if you wish to upgrade Magento to newer
  18. * versions in the future. If you wish to customize Magento for your
  19. * needs please refer to http://www.magentocommerce.com for more information.
  20. *
  21. * @category Mage
  22. * @package Mage_Install
  23. * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com)
  24. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  25. */
  26. /**
  27. * Installation ending block
  28. *
  29. * @author Magento Core Team <core@magentocommerce.com>
  30. */
  31. class Mage_Install_Block_End extends Mage_Install_Block_Abstract
  32. {
  33. protected $_template = 'end.phtml';
  34. public function getEncryptionKey()
  35. {
  36. $key = $this->getData('encryption_key');
  37. if (is_null($key)) {
  38. $key = (string) Mage::getConfig()->getNode('global/crypt/key');
  39. $this->setData('encryption_key', $key);
  40. }
  41. return $key;
  42. }
  43. /**
  44. * Return url for iframe source
  45. *
  46. * @return string
  47. */
  48. public function getIframeSourceUrl()
  49. {
  50. if (!Mage_AdminNotification_Model_Survey::isSurveyUrlValid()
  51. || Mage::getSingleton('Mage_Install_Model_Installer')->getHideIframe()) {
  52. return null;
  53. }
  54. return Mage_AdminNotification_Model_Survey::getSurveyUrl();
  55. }
  56. }