summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a7cdbf6)
raw | patch | inline | side by side (parent: a7cdbf6)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 30 Jan 2008 06:46:40 +0000 (06:46 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 30 Jan 2008 06:46:40 +0000 (06:46 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8639 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_daemonCommunicator.inc | [deleted file] | patch | blob | history |
gosa-core/include/class_gosaSupportDaemon.inc | patch | blob | history |
diff --git a/gosa-core/include/class_daemonCommunicator.inc b/gosa-core/include/class_daemonCommunicator.inc
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-/*
- This code is part of GOsa (https://gosa.gonicus.de)
- Copyright (C) 2008 Cajus Pollmeier <pollmeier@gonicus.de>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-
-class daemonCommunicator
-{
- static function send($header, $to, $data= array())
- {
- $xml_message= "";
-
- /* Get communication object */
- $d= new gosaSupportDaemon(TRUE,10);
-
- /* Prepare data */
- foreach ($data as $key => $value){
- $xml_message.= "<$key>$value</$key>";
- }
-
- return $d->send("<xml><header>$header</header><target>$to</target>".$xml_message."</xml>");
- }
-}
-
-// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
-?>
diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc
index 944e1fa2d8778888dc088f5b934a094f706b56f1..bd5766367ee305c232871cf84c555580121b76ba 100644 (file)
/*! \brief Returns an array containing all queued entries.
@return Array All queued entries as an array.
*/
- public function send($data, $answer_expected= FALSE)
+ public function _send($data, $answer_expected= FALSE)
{
$this->b_error = FALSE;
$this->s_error = "";
return($ret);
}
+
+ static function send($header, $to, $data= array())
+ {
+ $xml_message= "";
+
+ /* Get communication object */
+ $d= new gosaSupportDaemon(TRUE,10);
+
+ /* Prepare data */
+ foreach ($data as $key => $value){
+ $xml_message.= "<$key>$value</$key>";
+ }
+
+ return $d->_send("<xml><header>$header</header><target>$to</target>".$xml_message."</xml>");
+ }
+
+
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: