PHP Class Swoole\RecordSet

Author: Tianfeng.Han
Inheritance: implements Iterator
Mostrar archivo Open project: matyhtf/swoole_framework Class Usage Examples

Public Properties

Property Type Description
$_current_id
$primary

Protected Properties

Property Type Description
$_list
$db
$db_select SelectDb
$table

Public Methods

Method Description
__call ( $method, $argv )
__construct ( $db, $table, $primary, $select )
__set ( $key, $v )
current ( )
eq ( $field, $value ) : unknown_type 增加过滤条件,$field = $value
fetch ( $field = '' ) 获取一条数据 参数可以制定返回的字段
fetchall ( ) 获取全部数据
filter ( $where ) : null 过滤器语法,参数为SQL SelectDB的where语句
get ( ) : array 获取得到的数据
key ( )
next ( )
orfilter ( $where ) 过滤器语法,参数为SQL SelectDB的orwhere语句
params ( array $params ) : boolean 制定查询的参数,再调用数据之前进行 参数为SQL SelectDB的put语句
rewind ( )
valid ( )

Method Details

__call() public method

public __call ( $method, $argv )

__construct() public method

public __construct ( $db, $table, $primary, $select )

__set() public method

public __set ( $key, $v )

current() public method

public current ( )

eq() public method

增加过滤条件,$field = $value
public eq ( $field, $value ) : unknown_type
return unknown_type

fetch() public method

获取一条数据 参数可以制定返回的字段
public fetch ( $field = '' )
$field

fetchall() public method

获取全部数据
public fetchall ( )

filter() public method

过滤器语法,参数为SQL SelectDB的where语句
public filter ( $where ) : null
return null

get() public method

获取得到的数据
public get ( ) : array
return array

key() public method

public key ( )

next() public method

public next ( )

orfilter() public method

过滤器语法,参数为SQL SelectDB的orwhere语句
public orfilter ( $where )

params() public method

制定查询的参数,再调用数据之前进行 参数为SQL SelectDB的put语句
public params ( array $params ) : boolean
$params array
return boolean

rewind() public method

public rewind ( )

valid() public method

public valid ( )

Property Details

$_current_id public_oe property

public $_current_id

$_list protected_oe property

protected $_list

$db protected_oe property

protected $db

$db_select protected_oe property

protected SelectDb $db_select
return SelectDb

$primary public_oe property

public $primary

$table protected_oe property

protected $table