public function FrxEditor::save in Forena Reports 7.4
Save report
File
- ./
FrxEditor.inc, line 143 - 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 save() {
$this
->cleanup_ids();
unset($_SESSION['forena_report_editor'][$this->report_name]);
forena_save_report($this->report_name, $this
->asXML(), TRUE);
drupal_set_message(t('Your report, %s has been saved.', array(
'%s' => $this->report_name,
)));
drupal_get_messages('warning');
$cid = 'forena:report:' . $this->report_name . '%';
// Remove cache entries
db_delete('cache')
->condition('cid', $cid, 'LIKE')
->execute();
menu_rebuild();
}