- self::createDebugInstance(__CLASS__)->debugOutput('HUB: Initialize listener: FINISHED.');
- }
-
- /**
- * Restores a previously stored node list from database
- *
- * @return void
- */
- public function bootstrapRestoreNodeList () {
- // Debug output
- self::createDebugInstance(__CLASS__)->debugOutput('HUB: Restore node list: START');
-
- // Get a wrapper instance
- $wrapperInstance = ObjectFactory::createObjectByConfiguredName('node_list_db_wrapper_class');
-
- // Now get a search criteria instance
- $searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
-
- // Search for the node number zero which is hard-coded the default
- // @TODO Add some criteria, e.g. if the node is active or so
- //$searchInstance->addCriteria(NodeListDatabaseWrapper::DB_COLUMN_NODE_NR, 1);
- //$searchInstance->addCriteria(NodeListDatabaseWrapper::DB_COLUMN_NODE_TYPE, $this->getRequestInstance()->getRequestElement('mode'));
- //$searchInstance->setLimit(1);
-
- // Get a result back
- $resultInstance = $wrapperInstance->doSelectByCriteria($searchInstance);
-
- // Is it valid?
- if ($resultInstance->next()) {
- $this->partialStub('Do something for restoring the list.');
- // Output message
- //self::createDebugInstance(__CLASS__)->debugOutput('HUB: ');
- } else {
- // No previously saved node list found!
- self::createDebugInstance(__CLASS__)->debugOutput('HUB: No previously saved node list found. This is fine.');
- }
-
- // Debug output
- self::createDebugInstance(__CLASS__)->debugOutput('HUB: Restore node list: FINISHED.');