lib/PHPRtfLite/DocHead/ColorTable.php
public function add($color)
    {
        if (!empty($color)) {
            $color = self::getColorAsFullHexCode($color);
            if (!in_array($color, $this->_colors)) {
                $this->_colors[] = $color;
            }
        }
    }
public function add($color)
    {
        if (!empty($color)) {
            $color = self::getColorAsFullHexCode($color);
            if (!in_array($color, $this->_colors)) {
                $this->_colors[] = $color;
            }
        }
    }
public function add ( $ color ) { if ( ! empty ( $ color ) ) { $ color = self :: getColorAsFullHexCode ( $ color ) ; if ( ! in_array ( $ color , $ this -> _colors ) ) { $ this -> _colors [ ] = $ color ; } } }
adds color to rtf document

@param string $color color
adds color to rtf document