From 9c7a5a68b6025703828c7f2437b3751851566c07 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 26 Jun 2006 06:17:58 +0000 Subject: [PATCH] Fixed snapshot vars git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3887 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_SnapShotDialog.inc | 14 +++++++------- include/class_plugin.inc | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/class_SnapShotDialog.inc b/include/class_SnapShotDialog.inc index c2e0f8f86..02f9b529b 100755 --- a/include/class_SnapShotDialog.inc +++ b/include/class_SnapShotDialog.inc @@ -7,8 +7,8 @@ class SnapShotDialog extends plugin var $attributes = array("CurrentDescription"); var $CurrentDescription = ""; var $parent = NULL; - var $Restore = false; /* Defines the restore mode */ - var $DeletedOnes = false; /* Specifies which objects will be listed */ + var $display_restore_dialog = false; /* Defines the restore mode */ + var $display_all_removed_objects = false; /* Specifies which objects will be listed */ var $dialog = true; function SnapShotDialog($config,$dn,$parent) @@ -25,12 +25,12 @@ class SnapShotDialog extends plugin $smarty = get_smarty(); /* We must restore a snapshot, so get snapshots */ - if($this->Restore){ + if($this->display_restore_dialog){ /* Should we only display all snapshots of already deleted objects or the snapshots for the given object dn */ $res = array(); - if($this->DeletedOnes){ + if($this->display_all_removed_objects){ if(is_array($this->dn)){ $tmp = array(); foreach($this->dn as $dn){ @@ -48,7 +48,7 @@ class SnapShotDialog extends plugin $data = $entry['description'][0]; $date = date("d.m.Y H.i.s",preg_replace("/\-.*$/","",$entry['gosaSnapshotTimestamp'][0])); - if($this->DeletedOnes){ + if($this->display_all_removed_objects){ $data.= " - ".$entry['gosaSnapshotDN'][0]; } @@ -63,7 +63,7 @@ class SnapShotDialog extends plugin $smarty->assign("CountSnapShots",count($res)); } - $smarty->assign("RestoreMode",$this->Restore); + $smarty->assign("RestoreMode",$this->display_restore_dialog); $smarty->assign("CurrentDate",date("d.m.Y H:i")); $smarty->assign("CurrentDN",$this->dn); $smarty->assign("CurrentDescription",$this->CurrentDescription); @@ -74,7 +74,7 @@ class SnapShotDialog extends plugin function check() { $message = plugin::check(); - if(!$this->Restore){ + if(!$this->display_restore_dialog){ if(empty($this->CurrentDescription)){ $message[] = _("Please specify a valid description for this snapshot."); } diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 3e7725a5e..df9412f90 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -1303,14 +1303,14 @@ class plugin $entry = preg_replace("/^RestoreSnapShot_/","",$name); $entry = base64_decode(preg_replace("/_[xy]$/","",$entry)); $this->snapDialog = new SnapShotDialog($this->config,$entry,$this); - $this->snapDialog->Restore = true; + $this->snapDialog->display_restore_dialog = true; } /* Restore one of the already deleted objects */ if(preg_match("/^RestoreDeletedSnapShot_/",$name) && $once){ $once = false; $this->snapDialog = new SnapShotDialog($this->config,$baseSuffixe,$this); - $this->snapDialog->Restore = true; + $this->snapDialog->display_restore_dialog = true; $this->snapDialog->DeletedOnes = true; } } -- 2.30.2