]> git.mxchange.org Git - core.git/commitdiff
getStackCount() is now public
authorRoland Häder <roland@mxchange.org>
Fri, 11 Mar 2011 10:43:38 +0000 (10:43 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 11 Mar 2011 10:43:38 +0000 (10:43 +0000)
inc/classes/main/stacker/class_BaseStacker.php

index b186e064f977101e81b61bd307b57719f9706ea3..b029e4e2ca920ed0fe2b06fb01be3157e8b0c8d5 100644 (file)
@@ -114,7 +114,7 @@ class BaseStacker extends BaseFrameworkSystem {
                        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
@@ -128,7 +128,7 @@ class BaseStacker extends BaseFrameworkSystem {
         * @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