Пример #1
0
 /**
  * Write color table
  *
  * @return string
  */
 private function writeColorTable()
 {
     $content = '';
     $content .= '{';
     $content .= '\\colortbl;';
     foreach ($this->colorTable as $color) {
         list($red, $green, $blue) = Converter::htmlToRgb($color);
         $content .= "\\red{$red}\\green{$green}\\blue{$blue};";
     }
     $content .= '}';
     $content .= PHP_EOL;
     return $content;
 }