* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
* @todo Try to rewrite user/guest login classes and mark this exception as deprecated
+ * @deprecated Please do no longer use this exception
*
* 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
* Initializes given stacker
*
* @param $stackerName Name of the stack
+ * @param $forceReInit Force re-initialization
* @return void
* @throws AlreadyInitializedStackerException If the stack is already initialized
*/
- public final function initStacker ($stackerName) {
+ public final function initStacker ($stackerName, $forceReInit = false) {
// Is the stack already initialized?
- if ($this->isStackInitialized($stackerName)) {
+ if (($forceReInit === true) && ($this->isStackInitialized($stackerName))) {
// Then throw the exception
throw new AlreadyInitializedStackerException(array($this, $stackerName), self::EXCEPTION_STACKER_ALREADY_INITIALIZED);
} // END - if