setWriter() public method

sets writer
public setWriter ( PHPRtfLite_Writer_Interface $writer )
$writer PHPRtfLite_Writer_Interface
示例#1
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     // register PHPRtfLite class loader
     $this->_rtf = new PHPRtfLite();
     $writer = new PHPRtfLite_Writer_String();
     $this->_rtf->setWriter($writer);
 }
示例#2
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     $this->_rtf = new PHPRtfLite();
     $writer = new PHPRtfLite_Writer_String();
     $this->_rtf->setWriter($writer);
 }