public function FrxDataSource::tokens in Forena Reports 7.4
Same name and namespace in other branches
- 7.3 FrxDataSource.inc \FrxDataSource::tokens()
Load tokens from block source
2 calls to FrxDataSource::tokens()
File
- ./
FrxDataSource.inc, line 114 - 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;
}