public function FrxDataSource::tokens in Forena Reports 7.5
Load tokens from block source
2 calls to FrxDataSource::tokens()
- FrxDataSource::parseSQLFile in src/
Driver/ FrxDataSource.php - FrxDataSource::parseXMLFile in src/
Driver/ FrxDataSource.php
File
- src/
Driver/ FrxDataSource.php, line 116 - Class that defines default methods for access control in an FrxDataSource
Class
Namespace
Drupal\forena\DriverCode
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;
}