From: Roland Häder Date: Tue, 24 Nov 2020 03:23:26 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dca99c8d6489e4ad571cd0e729e956375848f511;p=hub.git Continued: - added missing getter/setter for $searchInstance and local class field - updated core framework Signed-off-by: Roland Häder --- diff --git a/application/hub/classes/nodes/class_BaseHubNode.php b/application/hub/classes/nodes/class_BaseHubNode.php index dbb1adb9f..b1d9e0541 100644 --- a/application/hub/classes/nodes/class_BaseHubNode.php +++ b/application/hub/classes/nodes/class_BaseHubNode.php @@ -99,6 +99,11 @@ abstract class BaseHubNode extends BaseHubSystem implements Updateable, AddableC */ private $listenerPoolInstance = NULL; + /** + * Search criteria instance + */ + private $searchInstance = NULL; + /** * Protected constructor * @@ -914,4 +919,23 @@ abstract class BaseHubNode extends BaseHubSystem implements Updateable, AddableC return $this->listenerPoolInstance; } + /** + * Setter for search instance + * + * @param $searchInstance Searchable criteria instance + * @return void + */ + public final function setSearchInstance (LocalSearchCriteria $searchInstance) { + $this->searchInstance = $searchInstance; + } + + /** + * Getter for search instance + * + * @return $searchInstance Searchable criteria instance + */ + public final function getSearchInstance () { + return $this->searchInstance; + } + } diff --git a/application/hub/interfaces/nodes/class_Node.php b/application/hub/interfaces/nodes/class_Node.php index 807f122e9..ae1a1210c 100644 --- a/application/hub/interfaces/nodes/class_Node.php +++ b/application/hub/interfaces/nodes/class_Node.php @@ -7,6 +7,7 @@ use Org\Shipsimu\Hub\Network\Message\DeliverableMessage; use Org\Shipsimu\Hub\Network\Receive\Receivable; // Import framework stuff +use Org\Mxchange\CoreFramework\Criteria\Local\LocalSearchCriteria; use Org\Mxchange\CoreFramework\Handler\Task\HandleableTask; use Org\Mxchange\CoreFramework\Generic\FrameworkInterface; use Org\Mxchange\CoreFramework\Request\Requestable; @@ -202,4 +203,19 @@ interface Node extends FrameworkInterface { */ function createNodeDataArray (); + /** + * Setter for search instance + * + * @param $searchInstance Searchable criteria instance + * @return void + */ + function setSearchInstance (LocalSearchCriteria $searchInstance); + + /** + * Getter for search instance + * + * @return $searchInstance Searchable criteria instance + */ + function getSearchInstance (); + } diff --git a/core b/core index 8c96c0cfa..8a70226bd 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 8c96c0cfa128e4d536788feec87d60719db198fa +Subproject commit 8a70226bd287a3f13b27932e2ec88d16c51c7e39