* @throws EmptyStackerException If the named stacker is empty
*/
function getNamed ($stackerName);
+
+ /**
+ * Checks wether the given stack is initialized (set in array $stackers)
+ *
+ * @param $stackerName Name of the stack
+ * @return $isInitialized Wether the stack is initialized
+ */
+ function isStackInitialized ($stackerName);
+
+ /**
+ * Checks wether the given stack is empty
+ *
+ * @param $stackerName Name of the stack
+ * @return $isEmpty Wether the stack is empty
+ * @throws NoStackerException If given stack is missing
+ */
+ function isStackEmpty ($stackerName);
}
// [EOF]
* @param $stackerName Name of the stack
* @return $isInitialized Wether the stack is initialized
*/
- protected final function isStackInitialized ($stackerName) {
+ public final function isStackInitialized ($stackerName) {
// Is is there?
$isInitialized = ((isset($this->stacks[$stackerName])) && (is_array($this->stacks[$stackerName])));
* @return $isFull Wether the stack is full
* @throws NoStackerException If given stack is missing
*/
- protected final function isStackFull($stackerName) {
+ protected final function isStackFull ($stackerName) {
// Is the stack not yet initialized?
if (!$this->isStackInitialized($stackerName)) {
// Throw an exception
* @return $isEmpty Wether the stack is empty
* @throws NoStackerException If given stack is missing
*/
- protected final function isStackEmpty($stackerName) {
+ public final function isStackEmpty ($stackerName) {
// Is the stack not yet initialized?
if (!$this->isStackInitialized($stackerName)) {
// Throw an exception