public function DataFile::userBlocks in Forena Reports 7.5
List all the reports for a language.
Return value
unknown
File
- src/
File/ DataFile.php, line 41
Class
Namespace
Drupal\forena\FileCode
public function userBlocks($search = '*') {
$blocks = array();
$this
->validateAllCache();
$sql = $this
->getCache('sql');
$inc = $this
->getCache('inc');
$xml = $this
->getCache('xml');
$data = array_merge($xml, $sql, $inc);
if ($data) {
foreach ($data as $base_name => $obj) {
if ($search == '*' || drupal_match_path($base_name, $search)) {
if ($obj->cache) {
$r = \Frx::DataManager()
->repository($obj->cache['provider']);
if ($r && $r
->access($obj->cache['access'])) {
$blocks[$base_name] = $obj;
}
}
}
}
}
uksort($blocks, '\\Drupal\\forena\\File\\DataFile::blockCompare');
return $blocks;
}