]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/file_directories/text/class_BaseTextFile.php
Introduced isReachableFilePath() and isReadableFile().
[core.git] / inc / classes / main / file_directories / text / class_BaseTextFile.php
index 1c15afa01945f5af86f3259abfca4f9c732af26a..ca7ff6ef68ecabbd8b51fb5b76dd4f4c4b6e84de 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -21,7 +21,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 BaseTextFile extends BaseFile {
+class BaseTextFile extends BaseAbstractFile {
        /**
         * Protected constructor
         *
@@ -52,7 +52,7 @@ class BaseTextFile extends BaseFile {
         */
        public function seek ($offset, $whence = SEEK_SET) {
                // Not possible in text files
-               self::createDebugInstance(__CLASS__)->debugOutput('offset=' . $offset . ',whence=' . $whence);
+               self::createDebugInstance(__CLASS__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . '] offset=' . $offset . ',whence=' . $whence);
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
@@ -69,7 +69,7 @@ class BaseTextFile extends BaseFile {
                 * This class (or its implementations) are special file readers/writers.
                 * There is no need to read/write the whole file.
                 */
-               self::createDebugInstance(__CLASS__)->debugOutput('fqfn=' . $fqfn);
+               self::createDebugInstance(__CLASS__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . '] fqfn=' . $fqfn);
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 }