/** * Get Entity type Name * @return string|null */ public function getTypeLabel() { if ($this->_type !== null) { return $this->_type->getLabel(); } return null; }
/** * Save registry type per store view data * * @param Enterprise_GiftRegistry_Model_Type $type * @return Enterprise_GiftRegistry_Model_Resource_Type */ public function saveTypeStoreData($type) { $this->_getWriteAdapter()->delete($this->_infoTable, array('type_id = ?' => (int) $type->getId(), 'store_id = ?' => (int) $type->getStoreId())); $this->_getWriteAdapter()->insert($this->_infoTable, array('type_id' => (int) $type->getId(), 'store_id' => (int) $type->getStoreId(), 'label' => $type->getLabel(), 'is_listed' => (int) $type->getIsListed(), 'sort_order' => (int) $type->getSortOrder())); return $this; }