return NULL;
}
+ /**
+ * Checks whether the given stack is full
+ *
+ * @param $stackerName Name of the stack
+ * @return $isFull Whether the stack is full
+ */
+ protected final function isStackFull ($stackerName) {
+ // File-based stacks will only run full if the disk space is low.
+ // @TODO Please implement this, returning FALSE
+ $isFull = FALSE;
+
+ // Return result
+ return $isFull;
+ }
+
+ /**
+ * Checks whether the given 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) {
+ // So, is the stack empty?
+ $isEmpty = (($this->getStackCount($stackerName)) == 0);
+
+ // Return result
+ return $isEmpty;
+ }
+
/**
* Initializes given stacker
*
* @throws UnsupportedOperationException This method is not (and maybe never will be) supported
*/
public function initStack ($stackerName, $forceReInit = FALSE) {
- throw new UnsupportedOperationException(array($this, __FUNCTION__, $executorInstance), self::EXCEPTION_UNSPPORTED_OPERATION);
+ throw new UnsupportedOperationException(array($this, __FUNCTION__, $this->getIteratorInstance()->getPointerInstance()), self::EXCEPTION_UNSPPORTED_OPERATION);
}
/**
* @throws UnsupportedOperationException This method is not (and maybe never will be) supported
*/
public function initStacks (array $stacks, $forceReInit = FALSE) {
- throw new UnsupportedOperationException(array($this, __FUNCTION__, $executorInstance), self::EXCEPTION_UNSPPORTED_OPERATION);
+ throw new UnsupportedOperationException(array($this, __FUNCTION__, $this->getIteratorInstance()->getPointerInstance()), self::EXCEPTION_UNSPPORTED_OPERATION);
}
/**
* @throws UnsupportedOperationException This method is not (and maybe never will be) supported
*/
public function isStackInitialized ($stackerName) {
- throw new UnsupportedOperationException(array($this, __FUNCTION__, $executorInstance), self::EXCEPTION_UNSPPORTED_OPERATION);
+ throw new UnsupportedOperationException(array($this, __FUNCTION__, $this->getIteratorInstance()->getPointerInstance()), self::EXCEPTION_UNSPPORTED_OPERATION);
}
/**