/** * Get database prefix. * * @throws EmptyDatabasePrefixException * @return string */ protected function _getPrefix() { $prefix = $this->_systemconfig->getParameter('mysql.dbprefix'); if (empty($prefix)) { $this->_logger->error('MySQL database prefix not configured.'); throw new EmptyDatabasePrefixException(); } return $prefix; }
/** * Test set parameter. */ public function testSetParameter() { $this->_cs->setParameter('testgroup.test', 'newTestValue'); $this->assertEquals('newTestValue', $this->_getConfigEntity()->getValue()); }
/** * Get zonefile definition path * * @return string */ protected function _getZoneDefinitionPath() { return $this->_config->getParameter('dns.config.zonedef'); }
/** * Check, if the given file is newer than the installation * * @param string $filename * * @return bool */ protected function _checkFileNewerThanInstallation($filename) { $mtime = filemtime($filename); $itime = $this->_configservice->getParameter('core.installdate'); return $mtime > $itime; }