*/
public function __construct (array $msgArray, $code) {
// Construct the message
- $message = sprintf("[%s:%d] SQL error detected. Message from database: <u>%s</u>, code: <u>0x%s</u>",
+ $message = sprintf("[%s:%d] SQL error detected. Message from database: <u>%s</u>, code: <u>0x%s</u>.",
$msgArray[0]->__toString(),
$this->getLine(),
$msgArray[1],
// find the "table" which is in fact a directory on the server
try {
// Get a directory pointer instance
- $directoryPointer = FrameworkDirectoryPointer::createFrameworkDirectoryPointer($pathName);
- $this->partialStub("Finish handling found "tables"");
+ $directoryInstance = FrameworkDirectoryPointer::createFrameworkDirectoryPointer($pathName);
+
+ // Initialize the result data, this need to be rewritten e.g. if a local file cannot be read
+ $resultData = array(
+ 'status' => "ok",
+ 'rows' => array()
+ );
+
+ // Read the directory with some exceptions
+ while ($dataFile = $directoryInstance->readDirectoryExcept(array(".", "..", ".htaccess"))) {
+ $this->partialStub(sprintf("File %s found.", $dataFile));
+ } // END - while
+
+ // Close directory and throw the instance away
+ $directoryInstance->closeDirectory();
+ unset($directoryInstance);
// Reset last error message and exception
$this->resetLastError();