PHP Class Swoole\RecordSet

Author: Tianfeng.Han
Inheritance: implements Iterator
Afficher le fichier Open project: matyhtf/swoole_framework Class Usage Examples

Méthodes publiques

Свойство Type Description
$_current_id
$primary

Protected Properties

Свойство Type Description
$_list
$db
$db_select SelectDb
$table

Méthodes publiques

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

public __call ( $method, $argv )

__construct() public méthode

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

__set() public méthode

public __set ( $key, $v )

current() public méthode

public current ( )

eq() public méthode

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

fetch() public méthode

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

fetchall() public méthode

获取全部数据
public fetchall ( )

filter() public méthode

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

get() public méthode

获取得到的数据
public get ( ) : array
Résultat array

key() public méthode

public key ( )

next() public méthode

public next ( )

orfilter() public méthode

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

params() public méthode

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

rewind() public méthode

public rewind ( )

valid() public méthode

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
Résultat SelectDb

$primary public_oe property

public $primary

$table protected_oe property

protected $table