Пример #1
0
 /**
  * Is enabled and allowes inline translations
  *
  * @param mixed $store
  * @return bool
  */
 public function isAllowed($store = null)
 {
     if (Mage::getSingleton('core/session')->getInlineTranslationEnabled()) {
         return true;
     }
     return parent::isAllowed($store);
 }
Пример #2
0
 public function testIsAllowed()
 {
     $this->assertTrue($this->_model->isAllowed());
     $this->assertTrue($this->_model->isAllowed($this->_storeId));
     $this->assertTrue($this->_model->isAllowed(Mage::app()->getStore($this->_storeId)));
 }