You are here

public function FrxSkin::addCSS in Forena Reports 7.3

Same name and namespace in other branches
  1. 7.4 FrxSkin.inc \FrxSkin::addCSS()

Add CSS Files

Parameters

$type:

$sheet:

2 calls to FrxSkin::addCSS()
FrxSkin::load in ./FrxSkin.inc
Load the skin based on the name.
FrxSkin::loadSkinFiles in ./FrxSkin.inc
Adds on report specific skin files to

File

./FrxSkin.inc, line 34
FrxSkin.inc Skinning

Class

FrxSkin
@file FrxSkin.inc Skinning

Code

public function addCSS($type, $sheet) {
  if (Frx::File()
    ->exists($sheet)) {
    $this->stylesheets[$type][] = Frx::File()
      ->path($sheet);
  }
  elseif (file_exists($sheet)) {
    $this->stylesheets[$type][] = $sheet;
  }
}