X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Finclude%2Fclass_gosaSupportDaemon.inc;h=6cf2291880998373a64ddc88dfae8ad46231b79a;hb=db53eacaba45abb923f6de1510178eef91ac1b8e;hp=f3d903329b674b72fa70309a1f40389ee5bbc68f;hpb=c967098faad93ca3233dea502eafc011979e5cdb;p=gosa.git diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index f3d903329..6cf229188 100755 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -17,13 +17,13 @@ class gosaSupportDaemon private $b_error = FALSE; public function __construct($host,$port,$key="secret-gosa-password",$connect=TRUE,$timeout=0.2) - { + { $this->s_host = $host; $this->i_port = $port; $this->f_timeout = $timeout; $this->s_encryption_key = $key; } - + public function connect() { $this->o_sock = new Socket_Client($this->s_host,$this->i_port,TRUE,$this->f_timeout); @@ -137,6 +137,63 @@ class gosaSupportDaemon { return($this->s_error); } + + public function decrease_entry_priority($id) + { + echo $id; + } + + public function increase_entry_priority($id) + { + echo $id; + } + + public function max_entry_priority($id) + { + echo $id; + } + + public function min_entry_priority($id) + { + echo $id; + } + + public function id_exists($id) + { + return(TRUE); + } + + public function get_entry($id) + { + foreach($this->entries as $entry){ + if($entry['ID'] == $id){ + return($entry); + } + } + } + + public function update_entry($id,$entry) + { + $xml_msg = ""; + + if($this->is_connected){ + $this->o_sock->write($xml_msg); + $str = trim($this->o_sock->read()); + $entries = $this->xml_to_array($str); + $this->disconnect(); + return(TRUE); + } + $this->set_error("Could not establish socket connection."); + return(FALSE); + } + + public function add_multiple($multiple) + { + } + + public function remove_entry($id) + { + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: