本文整理汇总了PHP中response::response方法的典型用法代码示例。如果您正苦于以下问题:PHP response::response方法的具体用法?PHP response::response怎么用?PHP response::response使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类response
的用法示例。
在下文中一共展示了response::response方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
function redirect_response($status = RESPONSE_STATUS_SUCCESS, $url = '')
{
if (!$url) {
$this->url = $_SERVER['PHP_SELF'];
} else {
$this->url = $url;
}
parent::response($status);
}
示例2:
function not_valid_response()
{
parent::response(RESPONSE_STATUS_FORM_NOT_VALID);
}
示例3:
function close_popup_response($status = RESPONSE_STATUS_SUCCESS, $reload_url = RELOAD_SELF_URL, $search_for_node = false)
{
$this->parent_reload_url = $reload_url;
$this->search_for_node = $search_for_node;
parent::response($status);
}
示例4:
function dont_track_response()
{
parent::response(RESPONSE_STATUS_DONT_TRACK);
}
示例5:
function failed_response()
{
parent::response(RESPONSE_STATUS_FAILURE);
}
示例6:
function exit_response($status = RESPONSE_STATUS_SUCCESS)
{
parent::response($status);
}
示例7:
function close_popup_no_reload_response($status = RESPONSE_STATUS_SUCCESS)
{
parent::response($status);
}
示例8:
function redirect_response($status = RESPONSE_STATUS_SUCCESS, $url = PHP_SELF)
{
$this->url = $url;
parent::response($status);
}