*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
* @return void
* @throws AlreadyInitializedStackerException If the stack is already initialized
*/
- public final function initStacker ($stackerName, $forceReInit = false) {
+ public final function initStacker ($stackerName, $forceReInit = FALSE) {
// Is the stack already initialized?
- if (($forceReInit === false) && ($this->isStackInitialized($stackerName))) {
+ if (($forceReInit === FALSE) && ($this->isStackInitialized($stackerName))) {
// Then throw the exception
throw new AlreadyInitializedStackerException(array($this, $stackerName), self::EXCEPTION_STACKER_ALREADY_INITIALIZED);
} // END - if
}
/**
- * Checks wether the given stack is initialized (set in array $stackers)
+ * Checks whether the given stack is initialized (set in array $stackers)
*
* @param $stackerName Name of the stack
- * @return $isInitialized Wether the stack is initialized
+ * @return $isInitialized Whether the stack is initialized
*/
public final function isStackInitialized ($stackerName) {
// Is is there?
}
/**
- * Checks wether the given stack is full
+ * Checks whether the given stack is full
*
* @param $stackerName Name of the stack
- * @return $isFull Wether the stack is full
+ * @return $isFull Whether the stack is full
* @throws NoStackerException If given stack is missing
*/
protected final function isStackFull ($stackerName) {
}
/**
- * Checks wether the given stack is empty
+ * Checks whether the given stack is empty
*
- * @param $stackerName Name of the stack
- * @return $isEmpty Wether the stack is empty
+ * @param $stackerName Name of the stack
+ * @return $isEmpty Whether the stack is empty
* @throws NoStackerException If given stack is missing
*/
public final function isStackEmpty ($stackerName) {
} // END - if
// So, is the stack empty?
- $isFull = (($this->getStackCount($stackerName)) == 0);
+ $isEmpty = (($this->getStackCount($stackerName)) == 0);
// Return result
- return $isFull;
+ return $isEmpty;
}
/**