PageRenderTime 47ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/kdms/sh-magento
PHP | 63 lines | 26 code | 3 blank | 34 comment | 3 complexity | b40b72fdea62099261fc0151a5154ead MD5 | raw file
  1. <?php
  2. /**
  3. * Magento Enterprise Edition
  4. *
  5. * NOTICE OF LICENSE
  6. *
  7. * This source file is subject to the Magento Enterprise Edition License
  8. * that is bundled with this package in the file LICENSE_EE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://www.magentocommerce.com/license/enterprise-edition
  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 Magento Inc. (http://www.magentocommerce.com)
  24. * @license http://www.magentocommerce.com/license/enterprise-edition
  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. public function __construct()
  34. {
  35. parent::__construct();
  36. $this->setTemplate('install/end.phtml');
  37. }
  38. public function getEncryptionKey()
  39. {
  40. $key = $this->getData('encryption_key');
  41. if (is_null($key)) {
  42. $key = (string) Mage::getConfig()->getNode('global/crypt/key');
  43. $this->setData('encryption_key', $key);
  44. }
  45. return $key;
  46. }
  47. /**
  48. * Return url for iframe source
  49. *
  50. * @return string
  51. */
  52. public function getIframeSourceUrl()
  53. {
  54. if (!Mage_AdminNotification_Model_Survey::isSurveyUrlValid()
  55. || Mage::getSingleton('install/installer')->getHideIframe()) {
  56. return null;
  57. }
  58. return Mage_AdminNotification_Model_Survey::getSurveyUrl();
  59. }
  60. }