PHP Class phprs\Response

..'
Author: caoym
Inheritance: implements ArrayAccess
Afficher le fichier Open project: caoym/phprs-restful Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

append() public méthode

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

clear() public méthode

清除缓存
public clear ( ) : void
Résultat void

flush() public méthode

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

getBuffer() public méthode

public getBuffer ( ) : multitype:
Résultat multitype:

offsetExists() public méthode

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

offsetGet() public méthode

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

offsetSet() public méthode

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

offsetUnset() public méthode

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

setBuffer() public méthode

public setBuffer ( unknown $buffer )
$buffer unknown