Example #1
0
 /**
  * Load variable by code
  *
  * @param Mage_Core_Model_Variable $object
  * @param string $code
  * @return Mage_Core_Model_Resource_Variable
  */
 public function loadByCode(Mage_Core_Model_Variable $object, $code)
 {
     if ($result = $this->getVariableByCode($code, true, $object->getStoreId())) {
         $object->setData($result);
     }
     return $this;
 }
Example #2
0
 public function testGetSetStoreId()
 {
     $this->_model->setStoreId(1);
     $this->assertEquals(1, $this->_model->getStoreId());
 }