X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fio%2Fclass_FileIoStream.php;h=7e257be47de862745dc7ce7ca2d6d3f1e557183e;hb=5bf79580029c4f6ee71e6c9e7890169e4b344def;hp=c9833465a84dd6757a94e947795848c84ea39303;hpb=7625f0ed496dbf1bb3efbb3bd327dbd0fd747af4;p=shipsimu.git diff --git a/inc/classes/main/io/class_FileIoStream.php b/inc/classes/main/io/class_FileIoStream.php index c983346..7e257be 100644 --- a/inc/classes/main/io/class_FileIoStream.php +++ b/inc/classes/main/io/class_FileIoStream.php @@ -2,11 +2,11 @@ /** * An universal class for file input/output streams. * - * @author Roland Haeder + * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software + * @copyright Copyright (c) 2007, 2008 Roland Haeder, this is free software * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.ship-simu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,7 +21,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class FileIOStream extends BaseFrameworkSystem implements FileInputStreamer, FileOutputStreamer { +class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, FileOutputStreamer { /** * Protected constructor */ @@ -29,12 +29,6 @@ class FileIOStream extends BaseFrameworkSystem implements FileInputStreamer, Fil // Call parent constructor parent::__construct(__CLASS__); - // Set part description - $this->setObjectDescription("Universal Datei-Ein-/Ausgabesystem"); - - // Create unique ID - $this->createUniqueID(); - // Clean-up a little $this->removeNumberFormaters(); $this->removeSystemArray(); @@ -44,11 +38,11 @@ class FileIOStream extends BaseFrameworkSystem implements FileInputStreamer, Fil * Create a file IO stream. This is a class for performing all actions * on files like creating, deleting and loading them. * - * @return $ioInstance An instance of FileIOStream + * @return $ioInstance An instance of FileIoStream */ - public final static function createFileIOStream () { + public final static function createFileIoStream () { // Create new instance - $ioInstance = new FileIOStream(); + $ioInstance = new FileIoStream(); // Return the instance return $ioInstance; @@ -164,7 +158,7 @@ class FileIOStream extends BaseFrameworkSystem implements FileInputStreamer, Fil // Is the header (maybe) valid? if (count($header) != 4) { // Throw an exception - throw new InvalidArrayCountException(array($this, "header", count($header), 4), self::EXCEPTION_ARRAY_HAS_INVALID_COUNT); + throw new InvalidArrayCountException(array($this, 'header', count($header), 4), self::EXCEPTION_ARRAY_HAS_INVALID_COUNT); } } elseif (substr($rawLine, 0, 5) == "@data") { // Is a data line! @@ -202,7 +196,7 @@ class FileIOStream extends BaseFrameworkSystem implements FileInputStreamer, Fil // Was a header found? if (count($header) != 4) { // Throw an exception - throw new InvalidArrayCountException(array($this, "header", count($header), 4), self::EXCEPTION_ARRAY_HAS_INVALID_COUNT); + throw new InvalidArrayCountException(array($this, 'header', count($header), 4), self::EXCEPTION_ARRAY_HAS_INVALID_COUNT); } // Decode all from Base64