You are here

public function FrxEditor::rename in Forena Reports 7.4

File

./FrxEditor.inc, line 60
FrxEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd

Class

FrxEditor
@file FrxEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd

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