projects
/
core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Temporary added very noisy debug lines
[core.git]
/
inc
/
classes
/
main
/
database
/
databases
/
class_LocalFileDatabase.php
diff --git
a/inc/classes/main/database/databases/class_LocalFileDatabase.php
b/inc/classes/main/database/databases/class_LocalFileDatabase.php
index 6d54d6462a9ee8bc506968d1d5b3782ecbf09a92..9c9c00bde531870addff78e18f3611f25ea5919f 100644
(file)
--- a/
inc/classes/main/database/databases/class_LocalFileDatabase.php
+++ b/
inc/classes/main/database/databases/class_LocalFileDatabase.php
@@
-189,6
+189,9
@@
class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend
* @return void
*/
private function writeDataArrayToFqfn ($fqfn, array $dataArray) {
* @return void
*/
private function writeDataArrayToFqfn ($fqfn, array $dataArray) {
+ // Debug message
+ /* NOISY-DEBUG: */ $this->debugOutput('DATABASE: Flushing ' . count($dataArray) . ' elements to database file ' . $fqfn . ' ...');
+
// Get a file pointer instance
$fileInstance = FrameworkFileOutputPointer::createFrameworkFileOutputPointer($fqfn, 'w');
// Get a file pointer instance
$fileInstance = FrameworkFileOutputPointer::createFrameworkFileOutputPointer($fqfn, 'w');
@@
-200,6
+203,9
@@
class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend
// Close the file pointer
$fileInstance->closeFile();
// Close the file pointer
$fileInstance->closeFile();
+
+ // Debug message
+ /* NOISY-DEBUG: */ $this->debugOutput('DATABASE: Flushing ' . count($dataArray) . ' elements to database file completed.');
}
/**
}
/**
@@
-463,7
+469,7
@@
class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend
if (substr($dataFile, -(strlen($this->getFileExtension()))) !== $this->getFileExtension()) {
// Skip this file!
continue;
if (substr($dataFile, -(strlen($this->getFileExtension()))) !== $this->getFileExtension()) {
// Skip this file!
continue;
- }
+ }
// END - if
// Open this file for reading
$dataArray = $this->getDataArrayFromFile($pathName . $dataFile);
// Open this file for reading
$dataArray = $this->getDataArrayFromFile($pathName . $dataFile);
@@
-477,7
+483,6
@@
class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend
// Is the criteria met?
if ((!is_null($criteria)) && ($criteria == $value)) {
// Is the criteria met?
if ((!is_null($criteria)) && ($criteria == $value)) {
-
// Shall we skip this entry?
if ($searchInstance->getSkip() > 0) {
// We shall skip some entries
// Shall we skip this entry?
if ($searchInstance->getSkip() > 0) {
// We shall skip some entries