You are here

public function FrxDataFile::buildCache in Forena Reports 7.4

Should load cache data based on that.

Overrides FrxFile::buildCache

See also

FrxFile::buildCache()

File

./FrxDataFile.inc, line 110

Class

FrxDataFile

Code

public function buildCache($ext, $base_name, &$object) {
  if ($base_name) {
    $block_name = $base_name;
    $parts = explode('/', $base_name);
    $provider = array_shift($parts);
    $block = Frx::RepoMan()
      ->loadBlock($block_name);
    $object->cache = array(
      'provider' => $provider,
      'name' => $block_name,
      'access' => @$block['access'],
      'type' => @$block['type'],
      'options' => @$block['options'],
    );
  }
}