设置邮件内容为纯文本内容

@param string $content
@param array  $param
@param array  $config

@return $this
194599
public function text($content, $param = [], $config = [])
    {
        if ($param) {
            $content = strtr($content, $this->parseParam($param, $config));
        }
        $this->message->setBody($content, MailerConfig::CONTENT_PLAIN);

        return $this;
    }
870022
public function setContent(string $content = null): ResponseContextAbstract
    {
        if (is_null($content)) {
            return $this;
        }

        $this->assertIsValid($content);

        $this->content = $content;

        return $this;
    }
1114000
public function put($path, $contents, array $config = []) {
        return $this->getFileSystem()->put($path, $contents, $config);
    }
53410
public function addOption(string $content, string $value)
    {
        $this->options[] = new Option($content, $value);

        return $this;
    }
917616
public void setContent(String content, String paramKey) {

        StringBuffer sb = new StringBuffer(128);
        sb.append("<b>").append(m_title).append("</b>&nbsp;").append(content);
        m_text.setHTML(sb.toString());
        m_paramKey = paramKey;
    }
1264502
public OqlBuilder<T> where(final String content, Object param1, Object param2, Object param3,
      Object... varparams) {
    Condition con = new Condition(content);
    con.param(param1);
    con.param(param2);
    con.param(param3);

    if (varparams != null && varparams.length > 0) {
      for (Object a : varparams) {
        con.param(a);
      }
    }
    return where(con);
  }
1252468
public function setContent( $content ) {
		$this->original = $content;

		if ( $this->should_be_json( $content ) ) {
			$this->header( 'Content-Type', 'application/json' );

			$content = $this->prepare_json_content( $content );
		}

		parent::setContent( $content );

		return $this;
	}
71430
protected function parseParam(array $param, array $config = [])
    {
        $ret = [];
        $leftDelimiter = isset($config['left_delimiter'])
            ? $config['left_delimiter']
            : Config::get('left_delimiter', '{');
        $rightDelimiter = isset($config['right_delimiter'])
            ? $config['right_delimiter']
            : Config::get('right_delimiter', '}');
        foreach ($param as $k => $v) {
            // 处理变量中包含有对元数据嵌入的变量
            $this->embedImage($k, $v, $param);
            $ret[$leftDelimiter . $k . $rightDelimiter] = $v;
        }

        return $ret;
    }
677224
public function setContent($content)
    {
        if (null !== $content && !is_string($content) && !is_numeric($content) && !is_callable(array($content, '__toString'))) {
            throw new \UnexpectedValueException(sprintf('The Response content must be a string or object implementing __toString(), "%s" given.', gettype($content)));
        }

        $this->content = (string) $content;

        return $this;
    }
1037061
public function setContent($content = null)
    {
        if (null !== $content && !is_string($content)) {
            throw new ResponseException('Response content must be a string.');
        }

        $this->content = (string) $content;

        return $this;
    }
410038
public function addToContent(string $param, string $value): void
    {
        $this->content[$param] = $value;

    }
244484
public function setContent(Content $content)
    {
        $this->contentTypeName = $content->getType()->getName();
        $this->contentId = $content->getContentId();

        return parent::setContent($content);
    }
846084
protected function generatePDF($content, $filename, $config = []) {
        unset($config['contentBefore'], $config['contentAfter']);
        $config = array_replace_recursive([
            // set to use core fonts only
            'mode' => Pdf::MODE_UTF8,
            // set mPDF properties on the fly
            'options' => [
                'autoLangToFont' => true,
                'autoScriptToLang' => true,
                'autoVietnamese' => true,
                'autoArabic' => true,
            ],
            // call mPDF methods on the fly
            'methods' => [
                'SetFooter' => ['{PAGENO}'],
            ]
                ], $config);
        $config['filename'] = $filename;
        $config['methods']['SetAuthor'] = ['CCIZA LTD.'];
        $config['methods']['SetCreator'] = ['CZA Extension'];
        $config['content'] = $content;
        $pdf = new Pdf($config);
        echo $pdf->render();
    }
1107308
private static function defineParam(string $type, array $params, array $config = [])
    {
        // params
        if (isset($params[$type]) && !empty($params[$type])) {
            return $params[$type];
        // config
        } elseif (isset($config[$type]) && !empty($config[$type])) {
            return $config[$type];
        }

        // default
        return self::$$type;
    }
437921
public function loadString($content, $url = null)
    {
        parent::loadString($content);

        //Let twig load the content by proxiing through the getSource() method.
        $this->_twig_template = $this->_twig->loadTemplate($content);

        //Push the template on the stack
        array_push($this->_stack, $url);
        return $this;
    }
36405
public function setContent(array $content, $replace = false)
    {
        if ($replace) {
            $this->content = $content;
        } else {
            foreach ($content as $key => $value) {
                $this->content[$key] = $value;
            }
        }

        return $this;
    }
721473
public function view($template, $param = [], $config = [])
    {
        $view = View::instance(ThinkConfig::get('template'), ThinkConfig::get('view_replace_str'));
        // 处理变量中包含有对元数据嵌入的变量
        foreach ($param as $k => $v) {
            $this->embedImage($k, $v, $param);
        }
        $content = $view->fetch($template, $param, [], $config);

        return $this->html($content);
    }