setWriter() 공개 메소드

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);
 }