summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8c1ca9d)
raw | patch | inline | side by side (parent: 8c1ca9d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 21 Feb 2008 15:14:19 +0000 (15:14 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 21 Feb 2008 15:14:19 +0000 (15:14 +0000) |
-Added comments.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9032 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9032 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc | patch | blob | history | |
gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc b/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc
index 28172e3a0511dd088bc3d6e07eee0d40f9ba0693..d9835f22e553fe218d88e93a6de56c97d087dd28 100644 (file)
$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);
}
foreach($this->entries as $key => $task){
-
$prio_actions = "<input class='center' type='image' src='images/prio_increase.png' name='prio_up_".$task['ID']."'> ";
$prio_actions.= "<input class='center' type='image' src='images/prio_decrease.png' name='prio_down_".$task['ID']."'> ";
$prio_actions.= "<input class='center' type='image' src='images/status_stop_all.png' name='stop_".$task['ID']."'> ";
diff --git a/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent.inc b/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent.inc
index 9039e88e95352fd4bab2b26070dc10cd96317c69..45dc1def5ecd0d739958662dd39c2a95bfcaef57 100644 (file)
}
+ /*! \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();