Renamed frontend to backend because it is a backend ...
[core.git] / inc / classes / main / database / databases / class_LocalFileDatabase.php
index b6db990441dabd37cd30dadffd8336042725f7cc..d92c29b41d940278c3ce1df9be1abb67cdd80f7a 100644 (file)
@@ -23,7 +23,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
-class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontendInterface {
+class LocalFileDatabase extends BaseDatabaseBackend implements DatabaseBackendInterface {
        // Constants for MySQL backward-compatiblity (PLEASE FIX THEM!)
        const DB_CODE_TABLE_MISSING     = 0x100;
        const DB_CODE_TABLE_UNWRITEABLE = 0x101;
@@ -110,7 +110,7 @@ class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend
        /**
         * Getter for last read file
         *
-        * @return      $lastFile               The last read file's name with full path
+        * @return      $lastFile       The last read file's name with full path
         */
        public final function getLastFile () {
                return $this->lastFile;
@@ -119,7 +119,7 @@ class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend
        /**
         * Setter for contents of the last read file
         *
-        * @param               $contents               An array with header and data elements
+        * @param               $contents       An array with header and data elements
         * @return      void
         */
        private final function setLastFileContents (array $contents) {
@@ -331,8 +331,8 @@ class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend
 
                        // Initialize the result data, this need to be rewritten e.g. if a local file cannot be read
                        $resultData = array(
-                               BaseDatabaseFrontend::RESULT_INDEX_STATUS => LocalfileDatabase::RESULT_OKAY,
-                               BaseDatabaseFrontend::RESULT_INDEX_ROWS   => array()
+                               BaseDatabaseBackend::RESULT_INDEX_STATUS => LocalfileDatabase::RESULT_OKAY,
+                               BaseDatabaseBackend::RESULT_INDEX_ROWS   => array()
                        );
 
                        // Initialize limit/skip
@@ -376,7 +376,7 @@ class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend
 
                                                        // Entry found!
                                                        //* NOISY-DEBUG: */ $this->debugOutput('DATABASE: indexKey=' . $this->getIndexKey() . ',idx=' . $idx . ',dataArray=' . print_r($dataArray, true));
-                                                       $resultData[BaseDatabaseFrontend::RESULT_INDEX_ROWS][] = $dataArray;
+                                                       $resultData[BaseDatabaseBackend::RESULT_INDEX_ROWS][] = $dataArray;
 
                                                        // Count found entries up
                                                        $limitFound++;