You are here

public function FrxDataSource::tokens in Forena Reports 7.3

Same name and namespace in other branches
  1. 7.4 FrxDataSource.inc \FrxDataSource::tokens()

Load tokens from block source

2 calls to FrxDataSource::tokens()
FrxDataSource::parseSQLFile in ./FrxDataSource.inc
FrxDataSource::parseXMLFile in ./FrxDataSource.inc

File

./FrxDataSource.inc, line 161
Class that defines default methods for access control in an FrxDataSource

Class

FrxDataSource
@file Class that defines default methods for access control in an FrxDataSource

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