Code

Fixed snapshot vars
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Jun 2006 06:17:58 +0000 (06:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Jun 2006 06:17:58 +0000 (06:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3887 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_SnapShotDialog.inc
include/class_plugin.inc

index c2e0f8f864ecd06fbc247d82f4397d8faa13029e..02f9b529b0e7e350c11fc8ebb0cbb4fbf22d000e 100755 (executable)
@@ -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.");
                        }
index 3e7725a5eaf48ab38d58d7a7368964c23bfbeb0e..df9412f90b03c70d953e11bfe7dd009a7430bd73 100644 (file)
@@ -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;
       }
     }