public function FrxDataFile::userBlocks in Forena Reports 7.4
List all the reports for a language.
Return value
unknown
File
- ./
FrxDataFile.inc, line 41
Class
Code
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::RepoMan()
->repository($obj->cache['provider']);
if ($r && $r
->access($obj->cache['access'])) {
$blocks[$base_name] = $obj;
}
}
}
}
}
uksort($blocks, 'FrxDataFile::blockCompare');
return $blocks;
}