You are here

function rtf::getColourTable in Bibliography Module 6

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

File

./class_rtf.php, line 229

Class

rtf

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;
}