예제 #1
0
파일: CsvWriter.php 프로젝트: lmkhang/mcntw
 /**
  * Constructor
  *
  * @param string   $delimiter The delimiter
  * @param string   $enclosure The enclosure
  * @param resource $stream
  * @param bool     $utf8Encoding
  */
 public function __construct($delimiter = ';', $enclosure = '"', $stream = null, $utf8Encoding = false)
 {
     parent::__construct($stream);
     $this->delimiter = $delimiter;
     $this->enclosure = $enclosure;
     $this->utf8Encoding = $utf8Encoding;
 }
예제 #2
0
 /**
  * Constructor
  *
  * @param string   $delimiter The delimiter
  * @param string   $enclosure The enclosure
  * @param resource $stream
  */
 public function __construct($delimiter = ';', $enclosure = '"', $stream = null)
 {
     parent::__construct($stream);
     $this->delimiter = $delimiter;
     $this->enclosure = $enclosure;
 }
예제 #3
0
 /**
  * Set a stream
  *
  * @param resource $stream
  */
 public function setStream($stream)
 {
     parent::setStream($stream);
     foreach ($this->getStreamWriters() as $writer) {
         $writer->setStream($stream);
     }
     return $this;
 }