Yaf_Response_Abstract::clearBody
(Yaf >=1.0.0)
Yaf_Response_Abstract::clearBody — 清除已经设置的响应body
说明
public Yaf_Response_Abstract::clearBody(string
$key
= ?): bool清除已经设置的响应body
参数
-
key
-
the content key, if you don't specific, then all contents will be cleared. 如果你没选择具体清除哪个key所对应的内容,那所有内容将被清除
注意:
this parameter is introduced as of 2.2.0
返回值
参见
- Yaf_Response_Abstract::setBody() - 设置响应的Body
- Yaf_Response_Abstract::appendBody() - 往已有的响应body后附加新的内容
- Yaf_Response_Abstract::prependBody() - The prependBody purpose
- Yaf_Response_Abstract::getBody() - 获取已经设置的响应body
![add a note](/images/notes-add@2x.png)
User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/yaf-response-abstract.clearbody.php