You are here

public function ReportEditor::rename in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 src/Editor/ReportEditor.php \Drupal\forena\Editor\ReportEditor::rename()

Rename report.

Parameters

$name: New report name

File

src/Editor/ReportEditor.php, line 71
ReportEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd

Class

ReportEditor

Namespace

Drupal\forena\Editor

Code

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();
}