public function ReportEditor::rename in Forena Reports 7.5
Same name and namespace in other branches
- 8 src/Editor/ReportEditor.php \Drupal\forena\Editor\ReportEditor::rename()
File
- src/
Editor/ ReportEditor.php, line 65 - ReportEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd
Class
Namespace
Drupal\forena\EditorCode
public function rename($name) {
$old_name = $this->report_name;
$this->report_name = $name;
$this->report_link = 'reports/' . str_replace('/', '.', $name);
unset($_SESSION['forena_report_editor'][$old_name]);
$this
->update();
}