From: hickert Date: Thu, 21 Feb 2008 15:14:19 +0000 (+0000) Subject: Updated gotomasses. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=816bcd0a58abc56d5347a369b89fa65d5b384e67;p=gosa.git Updated gotomasses. -Added comments. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9032 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc b/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc index 28172e3a0..d9835f22e 100644 --- a/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc +++ b/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc @@ -177,10 +177,12 @@ class gotomasses extends plugin $header = $this->dialog->get_header_tag(); $targets = $this->dialog->get_targets(); $data = $this->dialog->save(); - $data['TIMESTAMP'] = $this->dialog->get_timestamp(); + $data['timestamp'] = $this->dialog->get_timestamp(); + foreach($targets as $target){ - if(!$this->o_queue->send($header,$target,$data)){ + $data['mac'] = $target; + if(!$this->o_queue->send($header,$target,$data,TRUE)){ msg_dialog::display(_("Daemon"),sprintf(_("Something went wrong while talking to the daemon: %s."), $this->o_queue->get_error()),ERROR_DIALOG); } @@ -267,7 +269,6 @@ class gotomasses extends plugin foreach($this->entries as $key => $task){ - $prio_actions = " "; $prio_actions.= " "; $prio_actions.= " "; diff --git a/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent.inc b/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent.inc index 9039e88e9..45dc1def5 100644 --- a/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent.inc +++ b/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent.inc @@ -295,31 +295,55 @@ class DaemonEvent } + /*! \brief Returns TRUE if this event is new. (Not edited) + @return Boolean TRUE if new, else FALSE. + */ public function is_new() { return($this->is_new); } + + /*! \brief Returns the event tag e.g. 'job_trigger_action_wake' + @param Returns the event e.g. 'job_trigger_action_wake' + */ public function get_header_tag() { return($this->s_action); } - + + + /*! brief Returns an array containig all attributes \ + That should be written. + @return Array e.g. 'status' => 'bla blub' + */ public function save() { return(array()); } - + + + /*! \brief Returns the event targets + @return Array All selected targets. + */ public function get_targets() { return($this->a_targets); } + + /*! \brief Returns the event timestamp in GOsa daemon format. + @return Returns the event timestamp (20081231120000) + */ public function get_timestamp() { return($this->_timestamp_to_event($this->timestamp)); } + + /*! \brief Returns a set of elements selected in a MultiSelectWindow + @return Array[integer]=integer + */ protected function list_get_selected_items() { $ids = array();