/** * 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); }
public function getContent() { return Mime::encode($this->content, $this->getEncoding(), $this->lineLength, $this->eol); }
/** * 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); }
/** * 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); }