*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 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
*/
- protected final function initStacker ($stackerName) {
+ public final function initStacker ($stackerName) {
// Is the stack already initialized?
if ($this->isStackInitialized($stackerName)) {
// Then throw the exception
throw new NoStackerException(array($this, $stackerName), self::EXCEPTION_NO_STACKER_FOUND);
} // END - if
- // So, is the stack full?
+ // So, is the stack empty?
$isFull = (($this->getStackCount($stackerName)) == 0);
// Return result
* @return $count Size of stack (array count)
* @throws NoStackerException If given stack is missing
*/
- protected final function getStackCount ($stackerName) {
+ public final function getStackCount ($stackerName) {
// Is the stack not yet initialized?
if (!$this->isStackInitialized($stackerName)) {
// Throw an exception