You are here

public function DriverBase::tokens in Forena Reports 8

Load tokens from block source

2 calls to DriverBase::tokens()
DriverBase::parseSQLFile in src/FrxPlugin/Driver/DriverBase.php
Break the contents of a sql file down to its source.
DriverBase::parseXMLFile in src/FrxPlugin/Driver/DriverBase.php
Parse XML File contents into contents.

File

src/FrxPlugin/Driver/DriverBase.php, line 124
Class that defines default methods for access control in an DriverBase

Class

DriverBase

Namespace

Drupal\forena\FrxPlugin\Driver

Code

public function tokens($source) {
  $tokens = array();

  // If we have a regular expression token parser, then get the tokens out of the block.
  if ($this->te) {
    $tokens = @$this->te
      ->tokens($source);
    $tokens = array_diff($tokens, array(
      'current_user',
    ));

    //check tokens in the where clause
  }
  return $tokens;
}