You are here

public function FrxEditor::editorLinks in Forena Reports 7.4

1 call to FrxEditor::editorLinks()
FrxEditor::report in ./FrxEditor.inc
Load and render a report based on a drupal path. In this function the arglist is used to get the full path to the report. Pass parameters or NULL to use get /post parameters.

File

./FrxEditor.inc, line 1188
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 editorLinks() {
  $o = '';
  $report_link = $this->report_link;
  if (!$this->edit && user_access('design any report')) {

    // Add the block or ID link
    $o .= '<div class="forena-editor-links">' . $this
      ->l_icon("{$report_link}/edit", 'pencil.svg', 'Edit', (array) Frx::Data()
      ->getContext('parm'));
    if (module_exists('locale')) {
      $o .= $this
        ->l_icon("{$report_link}/translations", 'file.svg', 'Translations');
    }
    if (!$this->cache->include) {
      $o .= $this
        ->l_icon("{$report_link}/delete", 'minus.svg', 'Delete');
    }
    $o .= "</div>";
  }
  return $o;
}