PHPRtfLite::setWriter PHP Méthode

setWriter() public méthode

sets writer
public setWriter ( PHPRtfLite_Writer_Interface $writer )
$writer PHPRtfLite_Writer_Interface
    public function setWriter(PHPRtfLite_Writer_Interface $writer)
    {
        $this->_writer = $writer;
    }

Usage Example

 /**
  * 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);
 }
All Usage Examples Of PHPRtfLite::setWriter