From 31ef39baf005dc2e75e93adfb2fb8306c2976ab1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 4 Feb 2013 19:54:07 +0000 Subject: [PATCH] Added DHT instance (Distributable interface) --- .../main/class_BaseFrameworkSystem.php | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index 6766aa39..b34a1b24 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -163,6 +163,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { */ private $visitorInstance = NULL; + /** + * DHT instance + */ + private $dhtInstance = NULL; + /** * An instance of a database wrapper class */ @@ -1145,6 +1150,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { return $this->visitorInstance; } + /** + * Setter for DHT instance + * + * @param $dhtInstance A Distributable instance + * @return void + */ + protected final function setDhtInstance (Distributable $dhtInstance) { + $this->dhtInstance = $dhtInstance; + } + + /** + * Getter for DHT instance + * + * @return $dhtInstance A Distributable instance + */ + protected final function getDhtInstance () { + return $this->dhtInstance; + } + /** * Setter for raw package Data * -- 2.39.5