Ejemplo n.º 1
0
 /**
  * Get the Content of the current Mime Part in the given encoding.
  *
  * @param string $EOL
  * @return string
  */
 public function getContent($EOL = Mime::LINEEND)
 {
     if ($this->isStream) {
         return stream_get_contents($this->getEncodedStream($EOL));
     }
     return Mime::encode($this->content, $this->encoding, $EOL);
 }
Ejemplo n.º 2
0
 public function getContent()
 {
     return Mime::encode($this->content, $this->getEncoding(), $this->lineLength, $this->eol);
 }
Ejemplo n.º 3
0
 /**
  * Get the Content of the current Mime Part in the given encoding.
  *
  * @param string $EOL
  * @return string
  */
 public function getContent($EOL = Mime::LINEEND)
 {
     if ($this->isStream) {
         $encodedStream = $this->getEncodedStream($EOL);
         $encodedStreamContents = stream_get_contents($encodedStream);
         rewind($encodedStream);
         return $encodedStreamContents;
     }
     return Mime::encode($this->content, $this->encoding, $EOL);
 }
Ejemplo n.º 4
0
 /**
  * Get the Content of the current Mime Part in the given encoding.
  *
  * @param string $EOL
  * @return string
  */
 public function getContent($EOL = Mime::LINEEND)
 {
     if ($this->isStream) {
         $encodedStream = $this->getEncodedStream($EOL);
         $encodedStreamContents = stream_get_contents($encodedStream);
         $streamMetaData = stream_get_meta_data($encodedStream);
         if (isset($streamMetaData['seekable']) && $streamMetaData['seekable']) {
             rewind($encodedStream);
         }
         return $encodedStreamContents;
     }
     return Mime::encode($this->content, $this->encoding, $EOL);
 }