コード例 #1
0
ファイル: LinksTest.php プロジェクト: nemphys/magento2
 /**
  * Test that getConfig method retrieve Varien_Object object
  */
 public function testGetConfig()
 {
     // we have to set strict error reporting mode and enable mage developer mode to convert notice to exception
     error_reporting(E_ALL | E_STRICT);
     ini_set('display_errors', 1);
     Mage::setIsDeveloperMode(true);
     $this->assertInstanceOf('Varien_Object', $this->_block->getConfig());
 }
 public function getPurchasedSeparatelySelect()
 {
     $html = parent::getPurchasedSeparatelySelect();
     $role = Mage::getSingleton('aitpermissions/role');
     if (!Mage::app()->isSingleStoreMode() && $role->isPermissionsEnabled() && !$role->canEditGlobalAttributes()) {
         $html = str_replace('<select', '<select disabled="disabled"', $html);
     }
     return $html;
 }
コード例 #3
0
ファイル: Links.php プロジェクト: xiaoguizhidao/magento
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('unirgy/udprod/vendor/product/renderer/downloadable/links.phtml');
 }