parent::__construct($className);
// Get a stacker instance for this DHT
- $stackerInstance = ObjectFactory::createObjectByConfiguredName('dht_stacker_class');
+ $stackInstance = ObjectFactory::createObjectByConfiguredName('dht_stacker_class');
// Set it in this class
- $this->setStackerInstance($stackerInstance);
+ $this->setStackInstance($stackInstance);
// Init all stackers
$this->initStacks();
*/
private function initStacks () {
// Initialize all stacker
- $this->getStackerInstance()->initStacks(array(
+ $this->getStackInstance()->initStacks(array(
self::STACKER_NAME_INSERT_NODE,
self::STACKER_NAME_PENDING_PUBLISHING,
));
*/
public function ifInsertNodeDataPending () {
// Determine it if it is not empty
- $isPending = ($this->getStackerInstance()->isStackEmpty(self::STACKER_NAME_INSERT_NODE) === FALSE);
+ $isPending = ($this->getStackInstance()->isStackEmpty(self::STACKER_NAME_INSERT_NODE) === FALSE);
// Return status
return $isPending;
*/
public function insertSingleNodeData () {
// Get next node data from stack
- $nodeData = $this->getStackerInstance()->popNamed(self::STACKER_NAME_INSERT_NODE);
+ $nodeData = $this->getStackInstance()->popNamed(self::STACKER_NAME_INSERT_NODE);
// Make sure $nodeData is really an array and has at least one entry
assert((is_array($nodeData)) && (count($nodeData) > 0));
// ... and push it to the next stack
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('BASE-DHT[' . __METHOD__ . ':' . __LINE__ . '] Pushing entry with ' . count($current) . ' elements to stack ' . self::STACKER_NAME_PENDING_PUBLISHING . ' ...');
- $this->getStackerInstance()->pushNamed(self::STACKER_NAME_PENDING_PUBLISHING, $current);
+ $this->getStackInstance()->pushNamed(self::STACKER_NAME_PENDING_PUBLISHING, $current);
} // END - while
}
*/
public function hasEntriesPendingPublication () {
// Determine it if it is not empty
- $isPending = ($this->getStackerInstance()->isStackEmpty(self::STACKER_NAME_PENDING_PUBLISHING) === FALSE);
+ $isPending = ($this->getStackInstance()->isStackEmpty(self::STACKER_NAME_PENDING_PUBLISHING) === FALSE);
// Return status
/* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('BASE-DHT[' . __METHOD__ . ':' . __LINE__ . '] isPending=' . intval($isPending));
$this->publishHelperInstance->loadDescriptorXml($this);
// "Pop" next entry
- $entry = $this->getStackerInstance()->popNamed(self::STACKER_NAME_PENDING_PUBLISHING);
+ $entry = $this->getStackInstance()->popNamed(self::STACKER_NAME_PENDING_PUBLISHING);
// Some sanity-checks
assert(is_array($entry));