public function getDatabaseReadAdapter() { $this->getMagentoEnvironment(); return \Mage::getModel('core/resource')->getConnection('core_read'); }
/** * @return array */ public function getAllValues() { $read = $this->_magento->getDatabaseReadAdapter(); $query = $read->select()->from($this->_table_name, array('scope', 'scope_id', 'path', 'value')); return $read->fetchAll($query); }