public function FrxDocument::loadCSSFiles in Forena Reports 7.4
Same name and namespace in other branches
- 7.3 FrxDocument.inc \FrxDocument::loadCSSFiles()
2 calls to FrxDocument::loadCSSFiles()
- FrxHtmlDoc::render in docformats/
FrxHtmlDoc.inc - FrxWordDoc::render in docformats/
FrxWordDoc.inc
File
- ./
FrxDocument.inc, line 27 - FrxDocument.inc Given a report, render the appropriate output given the document format. @author davidmetzler
Class
- FrxDocument
- @file FrxDocument.inc Given a report, render the appropriate output given the document format. @author davidmetzler
Code
public function loadCSSFiles($format) {
// Add css files
$css = '';
foreach (Frx::Skin()->stylesheets as $type => $sheets) {
foreach ($sheets as $sheet) {
switch ($type) {
case 'all':
case $format:
$css .= file_get_contents($sheet);
break;
}
}
}
return $css;
}