You are here

public function rtf::getColourTable in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/rtf/rtf_export.inc \rtf::getColourTable()
  2. 6 class_rtf.php \rtf::getColourTable()
  3. 7.2 modules/rtf/rtf_export.inc \rtf::getColourTable()

Colour table.

1 call to rtf::getColourTable()
rtf::getDocument in modules/rtf/rtf_export.inc
Ouput the RTF file.

File

modules/rtf/rtf_export.inc, line 283

Class

rtf

Code

public function getColourTable() {
  $colour_buffer = "";
  if (count($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;
}