From: hickert Date: Tue, 2 Dec 2008 07:36:06 +0000 (+0000) Subject: Updated gosaSupportDaemon X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d2ea05bf23acb88a1da65dd3bef87b361a929207;p=gosa.git Updated gosaSupportDaemon -Added function to check whether the deamon is configured or not. gosa.conf. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13104 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index 5c183e763..2f619e84e 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -31,8 +31,8 @@ class gosaSupportDaemon private $s_error = ""; private $b_error = FALSE; - private $is_connected = FALSE; - + private $is_connected = FALSE; + private $is_configured = FALSE; protected $use_alternative_xml_parse_method = FALSE; public function get_host() @@ -70,7 +70,7 @@ class gosaSupportDaemon $this->i_port= preg_replace("/^.*@[^:]+:(.*)$/", "$1", $config->get_cfg_value("gosaSupportURI")); $this->s_encryption_key = preg_replace("/^(.*)@[^:]+:.*$/", "$1", $config->get_cfg_value("gosaSupportURI")); } - + $this->is_configured = TRUE; $this->f_timeout = $timeout; if($connect){ $this->connect(); @@ -79,6 +79,12 @@ class gosaSupportDaemon } + public function is_configured() + { + return($this->is_configured); + } + + /*! \brief Establish daemon connection. @return boolean Returns true if the connection was succesfully established. */