Lines Matching refs:this
33 $this->setContentType($type);
34 $this->setEncoding($encoding);
35 $this->setCharset($charset);
36 $this->setFlowed(false);
40 $this->setData($data);
44 …if (is_string($data) && Swift_Message_Encoder::instance()->isUTF8($data)) $this->setCharset("utf-8…
45 else $this->setCharset("iso-8859-1"); //The likely encoding
63 $this->setData($body);
71 return $this->getData();
79 $this->headers->setAttribute("Content-Type", "charset", $charset);
80 …if (($this->getEncoding() == "7bit") && (strtolower($charset) == "utf-8" || strtolower($charset) =…
89 if ($this->headers->hasAttribute("Content-Type", "charset"))
91 return $this->headers->getAttribute("Content-Type", "charset");
106 $this->headers->setAttribute("Content-Type", "format", $value);
113 if (!($enc = $this->getEncoding())) $this->setEncoding("8bit");
114 $data = $this->getData();
115 if ($this->getCharset() === null && !$this->numChildren())
119 $this->setCharset("utf-8");
123 $this->setCharset("us-ascii");
124 if (!$enc) $this->setEncoding("7bit");
126 else $this->setCharset("iso-8859-1");
128 elseif ($this->numChildren())
130 $this->setCharset(null);
131 $this->setEncoding("7bit");