You are here

public function DataFile::buildCache in Forena Reports 7.5

Should load cache data based on that.

Overrides FileBase::buildCache

See also

FrxFile::buildCache()

File

src/File/DataFile.php, line 110

Class

DataFile

Namespace

Drupal\forena\File

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::DataManager()
      ->loadBlock($block_name);
    $object->cache = array(
      'provider' => $provider,
      'name' => $block_name,
      'access' => @$block['access'],
      'type' => @$block['type'],
      'options' => @$block['options'],
    );
  }
}