lib/PHPRtfLite/List.php
public function addItem($text,
        PHPRtfLite_Font $font = null,
        PHPRtfLite_ParFormat $parFormat = null,
        $convertTagsToRtf = true
    ) {
        if ($font === null) {
            $font = $this->_font;
        }
        if ($parFormat === null) {
            $parFormat = $this->_parFormat;
        }

        $element = new PHPRtfLite_Element($this->_rtf, $text, $font, $parFormat);
        if ($convertTagsToRtf) {
            $element->setConvertTagsToRtf();
        }
        $this->_items[] = $element;

        return $this;
    }
public function addItem($text,
        PHPRtfLite_Font $font = null,
        PHPRtfLite_ParFormat $parFormat = null,
        $convertTagsToRtf = true
    ) {
        if ($font === null) {
            $font = $this->_font;
        }
        if ($parFormat === null) {
            $parFormat = $this->_parFormat;
        }

        $element = new PHPRtfLite_Element($this->_rtf, $text, $font, $parFormat);
        if ($convertTagsToRtf) {
            $element->setConvertTagsToRtf();
        }
        $this->_items[] = $element;

        return $this;
    }
public function addItem ( $ text , PHPRtfLite_Font $ font = null , PHPRtfLite_ParFormat $ parFormat = null , $ convertTagsToRtf = true ) { if ( $ font === null ) { $ font = $ this -> _font ; } if ( $ parFormat === null ) { $ parFormat = $ this -> _parFormat ; } $ element = new PHPRtfLite_Element ( $ this -> _rtf , $ text , $ font , $ parFormat ) ; if ( $ convertTagsToRtf ) { $ element -> setConvertTagsToRtf ( ) ; } $ this -> _items [ ] = $ element ; return $ this ; }
adds item to list

@param   string                  $text
@param   PHPRtfLite_Font         $font
@param   PHPRtfLite_ParFormat    $parFormat
@param   boolean                 $convertTagsToRtf
@return  $this
adds item to list