/** * Updates the database if necessary * * @author Benjamin Butschell <*****@*****.**> * @return array */ protected function updateDatabase() { $params["extensionKey"] = "mask"; $sqlStatements = $this->storageRepository->loadSql(); if (count($sqlStatements) > 0) { $response = $this->performDbUpdates($params, implode(" ", $sqlStatements)); } return $response; }
/** * Returns the SQL of all elements * * @param array $sqlString * @return array */ public function addDatabaseTablesDefinition(array $sqlString) { $sql = $this->storageRepository->loadSql(); $mergedSqlString = array_merge($sqlString, $sql); return array('sqlString' => $mergedSqlString); }