function restore() { if (!($data = SingleDateDB::restoreSingleDate($this->termin_id))) { return false; } $this->fillValuesFromArray($data); return true; }
//wurde Code fuer Anlegen von Ordnern der obersten Ebene ubermittelt (=id+"_a_"), //wird entsprechende Funktion aufgerufen if ($open_cmd == 'a') { $permission = 7; if ($open_id == $SessSemName[1]) { $titel=_("Allgemeiner Dateiordner"); $description= sprintf(_("Ablage für allgemeine Ordner und Dokumente der %s"), $SessSemName["art_generic"]); } else if ($open_id == md5('new_top_folder')){ $titel = Request::get('top_folder_name') ? Request::get('top_folder_name') : _("Neuer Ordner"); $open_id = md5($SessSemName[1] . 'top_folder'); } elseif($titel = GetStatusgruppeName($open_id)) { $titel = _("Dateiordner der Gruppe:") . ' ' . $titel; $description = _("Ablage für Ordner und Dokumente dieser Gruppe"); $permission = 15; } else if ($data = SingleDateDB::restoreSingleDate($open_id)) { // If we create a folder which has not yet an issue, we just create one $issue = new Issue(array('seminar_id' => $SessSemName[1])); $issue->setTitle(_("Ohne Titel")); $termin = new SingleDate($open_id); $termin->addIssueID($issue->getIssueID()); $issue->store(); $termin->store(); $open_id = $issue->getIssueID(); $titel = $issue->getTitle(); $description= _("Themenbezogener Dateiordner"); } else { $query = "SELECT title FROM themen WHERE issue_id = ?"; $statement = DBManager::get()->prepare($query); $statement->execute(array($open_id));