function rtf::getColourTable in Bibliography Module 6
Same name and namespace in other branches
- 6.2 modules/rtf/rtf_export.inc \rtf::getColourTable()
- 7 modules/rtf/rtf_export.inc \rtf::getColourTable()
- 7.2 modules/rtf/rtf_export.inc \rtf::getColourTable()
1 call to rtf::getColourTable()
File
- ./
class_rtf.php, line 229
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;
}