X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fio%2Fclass_FrameworkDirectoryPointer.php;h=9b07e1271750f775b6d16ee4926879261ffd29b8;hp=e0a0c4e5bfcae51f016229ba1e1d758302787ad7;hb=51caaa61ae7ee017abdfd116bbd8c438451315b2;hpb=3107989f93cfb5808ce9d75f1c7d2b7ee3d83d18 diff --git a/inc/classes/main/io/class_FrameworkDirectoryPointer.php b/inc/classes/main/io/class_FrameworkDirectoryPointer.php index e0a0c4e5..9b07e127 100644 --- a/inc/classes/main/io/class_FrameworkDirectoryPointer.php +++ b/inc/classes/main/io/class_FrameworkDirectoryPointer.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007 - 2009 Roland Haeder, this is free software + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -38,10 +38,6 @@ class FrameworkDirectoryPointer extends BaseFrameworkSystem { protected function __construct () { // Call parent constructor parent::__construct(__CLASS__); - - // Clean-up a little - $this->removeNumberFormaters(); - $this->removeSystemArray(); } /** @@ -62,22 +58,21 @@ class FrameworkDirectoryPointer extends BaseFrameworkSystem { * Create a directory pointer based on the given path. The path will also * be verified here. * - * @param $pathName The path name we shall pass - * to opendir() - * @param $inConstructor If we are in de/con-structor - * or from somewhere else - * @throws PathIsEmptyException If the provided path name + * @param $pathName The path name we shall pass to opendir() + * @param $inConstructor If we are in de/con-structor or from somewhere + * else + * @return $pointerInstance A prepared instance of + * FrameworkDirectoryPointer + * @throws PathIsEmptyException If the provided path name * is empty * @throws InvalidPathStringException If the provided path name is - * not a string + * not a string * @throws PathIsNoDirectoryException If the provided path name is - * not valid + * not valid * @throws PathReadProtectedException If the provided path name is - * read-protected + * read-protected * @throws DirPointerNotOpened If opendir() returns not a - * directory resource - * @return $pointerInstance A prepared instance of - * FrameworkDirectoryPointer + * directory resource */ public final static function createFrameworkDirectoryPointer ($pathName, $inConstructor = false) { // Some pre-sanity checks... @@ -201,7 +196,7 @@ class FrameworkDirectoryPointer extends BaseFrameworkSystem { $this->dirPointer = $dirPointer; } else { // Throw exception - throw new InvalidDirectoryResourceException($this, self::EXCEPTION_INVALID_DIRECTORY_POINTER); + throw new InvalidResourceException($this, self::EXCEPTION_INVALID_RESOURCE); } }