function rtf::getColourTable in Bibliography Module 6.2
Same name and namespace in other branches
- 6 class_rtf.php \rtf::getColourTable()
- 7 modules/rtf/rtf_export.inc \rtf::getColourTable()
- 7.2 modules/rtf/rtf_export.inc \rtf::getColourTable()
1 call to rtf::getColourTable()
- rtf::getDocument in modules/
rtf/ rtf_export.inc
File
- modules/
rtf/ rtf_export.inc, line 228
Class
Code
function getColourTable() {
$colour_buffer = "";
if (sizeof($this->colour_table) > 0) {
$colour_buffer = "{\\colortbl;\n";
foreach ($this->colour_table as $cnum => $carray) {
$colour_buffer .= "\\red{$carray['red']}\\green{$carray['green']}\\blue{$carray['blue']};\n";
}
$colour_buffer .= "}\n\n";
}
return $colour_buffer;
}