summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 72c3675)
raw | patch | inline | side by side (parent: 72c3675)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 26 Jun 2006 06:17:58 +0000 (06:17 +0000) | ||
committer | hickert <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 | patch | blob | history | |
include/class_plugin.inc | patch | blob | history |
index c2e0f8f864ecd06fbc247d82f4397d8faa13029e..02f9b529b0e7e350c11fc8ebb0cbb4fbf22d000e 100755 (executable)
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)
$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){
$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];
}
$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);
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)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
$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;
}
}