PHP Class phprs\Response

..'
Author: caoym
Inheritance: implements ArrayAccess
Show file Open project: caoym/phprs-restful Class Usage Examples

Public Methods

Method Description
__construct ( array $sender = null ) 创建响应
append ( array $buffer ) 附加更多数据
clear ( ) : void 清除缓存
flush ( $limit = null, $func = null ) : array: 想缓存写出
getBuffer ( ) : multitype:
offsetExists ( $offset ) (non-PHPdoc)
offsetGet ( $offset ) 通过[]操作符设置输出数据
offsetSet ( $offset, $value ) (non-PHPdoc)
offsetUnset ( $offset ) (non-PHPdoc)
setBuffer ( unknown $buffer )

Method Details

__construct() public method

创建响应
public __construct ( array $sender = null )
$sender array 数据发送方法

append() public method

附加更多数据
public append ( array $buffer )
$buffer array

clear() public method

清除缓存
public clear ( ) : void
return void

flush() public method

想缓存写出
public flush ( $limit = null, $func = null ) : array:
$limit 取指定的项目
$func 取出后调用的方法
return array:

getBuffer() public method

public getBuffer ( ) : multitype:
return multitype:

offsetExists() public method

(non-PHPdoc)
See also: ArrayAccess::offsetExists()
public offsetExists ( $offset )

offsetGet() public method

通过[]操作符设置输出数据
public offsetGet ( $offset )

offsetSet() public method

(non-PHPdoc)
See also: ArrayAccess::offsetSet()
public offsetSet ( $offset, $value )

offsetUnset() public method

(non-PHPdoc)
See also: ArrayAccess::offsetUnset()
public offsetUnset ( $offset )

setBuffer() public method

public setBuffer ( unknown $buffer )
$buffer unknown