function writeSectionText(PHPRtfLite_Container_Section $sect, $arial14, $times12, $text, $text2, $text3) { $sect->writeText('Sample RTF document', $arial14, new PHPRtfLite_ParFormat()); $sect->writeText($text, $times12, new PHPRtfLite_ParFormat()); $sect->writeText('Character encoding', $arial14, new PHPRtfLite_ParFormat()); $sect->writeText($text2, $times12, new PHPRtfLite_ParFormat()); $sect->writeText('Common implementations', $arial14, new PHPRtfLite_ParFormat()); $sect->writeText($text3, $times12, new PHPRtfLite_ParFormat()); }
/** * tests addEndnote */ public function testAddEndnote() { $endnote = $this->_section->addEndnote('endnote test'); $this->assertInstanceOf('PHPRtfLite_Endnote', $endnote); }
/** * Adds section to rtf document. * * @return PHPRtfLite_Container_Section */ public function addSection() { $section = new PHPRtfLite_Container_Section($this); if (count($this->_sections) == 0) { $section->setFirst(true); } $this->_sections[] = $section; return $section; }