projects
/
core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added new interfaces for file i/o classes.
[core.git]
/
inc
/
classes
/
middleware
/
io
/
class_FileIoHandler.php
diff --git
a/inc/classes/middleware/io/class_FileIoHandler.php
b/inc/classes/middleware/io/class_FileIoHandler.php
index 55f98f8e636f580bb5870b1c0f8c843c1c99f9c6..81be505619114f92fca24ee1237d1a2f8f30ef25 100644
(file)
--- a/
inc/classes/middleware/io/class_FileIoHandler.php
+++ b/
inc/classes/middleware/io/class_FileIoHandler.php
@@
-125,9
+125,6
@@
class FileIoHandler extends BaseMiddleware implements IoHandler {
* @return void
*/
public function saveFile ($fileName, $dataStream, FrameworkInterface $objectInstance = NULL) {
* @return void
*/
public function saveFile ($fileName, $dataStream, FrameworkInterface $objectInstance = NULL) {
- // Get output stream
- $outInstance = $this->getOutputStream();
-
// Default is this array
$className = $this->__toString();
// Default is this array
$className = $this->__toString();
@@
-144,7
+141,7
@@
class FileIoHandler extends BaseMiddleware implements IoHandler {
);
// Send the fileName and dataArray to the output handler
);
// Send the fileName and dataArray to the output handler
- $
outInstance
->saveFile($fileName, $dataArray);
+ $
this->getOutputStream()
->saveFile($fileName, $dataArray);
}
/** Loads data from a file over the input handler
}
/** Loads data from a file over the input handler
@@
-153,11
+150,8
@@
class FileIoHandler extends BaseMiddleware implements IoHandler {
* @return $array Array with the file contents
*/
public function loadFileContents ($fqfn) {
* @return $array Array with the file contents
*/
public function loadFileContents ($fqfn) {
- // Get output stream
- $inInstance = $this->getInputStream();
-
// Read from the input handler
// Read from the input handler
- return $
inInstance
->loadFileContents($fqfn);
+ return $
this->getInputStream()
->loadFileContents($fqfn);
}
}
}
}