You are here

public function ReportEditor::editorLinks in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 src/Editor/ReportEditor.php \Drupal\forena\Editor\ReportEditor::editorLinks()
1 call to ReportEditor::editorLinks()
ReportEditor::report in src/Editor/ReportEditor.php
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

src/Editor/ReportEditor.php, line 1243
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 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;
}