From eb824b703d21d37a0860a4a72db320ed54046e84 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 8 Oct 2014 23:44:04 +0200 Subject: [PATCH] Refacturing to pass a ProtocolHandler instance instead of the direct name. This makes the code more flexible to other protocol handlers including FAX "connections" and many fancy stuff more. This refacuring is not complete. Signed-off-by: Roland Haeder --- application/hub/main/class_BaseHubSystem.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/application/hub/main/class_BaseHubSystem.php b/application/hub/main/class_BaseHubSystem.php index f41ac725c..fef2f6ebb 100644 --- a/application/hub/main/class_BaseHubSystem.php +++ b/application/hub/main/class_BaseHubSystem.php @@ -703,6 +703,25 @@ class BaseHubSystem extends BaseFrameworkSystem { // Return result return $stateName; } + + /** + * Getter for protocol name + * + * @return $protocolName Name of used protocol + */ + public final function getProtocolName () { + return $this->protocolName; + } + + /** + * Setter for protocol name + * + * @param $protocolName Name of used protocol + * @return void + */ + protected final function setProtocolName ($protocolName) { + $this->protocolName = $protocolName; + } } // [EOF] -- 2.39.5