PHP 클래스 MongoHybrid\Client

파일 보기 프로젝트 열기: sjardim/Hugopit

보호된 프로퍼티들

프로퍼티 타입 설명
$driver

공개 메소드들

메소드 설명
__call ( $method, $args )
__construct ( $server, $options = [] )
decrKey ( string $collection, string $key, integer $by = 1 ) : integer Decrement value by x
dropCollection ( $name, $db = null )
getKey ( string $collection, string $key, mixed $default = null ) : mixed Get value for specific key
hdel ( string $key ) : integer Delete one or more hash fields
hexists ( string $collection, string $key, string $field ) : boolean Determine if a hash field exists
hget ( string $collection, string $key, string $field, mixed $default = null ) : mixed Get the value of a hash field
hgetall ( string $key ) : array Get all the fields and values in a hash
hincrby ( $collection, string $key, string $field, integer $by = 1 ) : integer Increment the integer value of a hash field by the given number
hkeys ( string $key ) : array Get all the fields in a hash
hlen ( string $key ) : integer Get the number of fields in a hash
hmget ( string $key ) : array Get the values of all the given hash fields
hmset ( string $key ) Set multiple hash fields to multiple values
hset ( string $collection, string $key, string $field, mixed $value ) Set the string value of a hash field
hvals ( string $key ) : array Get all the values in a hash
incrKey ( string $collection, string $key, integer $by = 1 ) : integer Increment value by x
insert ( $collection, &$doc )
keyExists ( string $collection, string $key ) Check if key exists
lindex ( string $collection, string $key, integer $index ) : mixed Get an element from a list by its index
lpush ( string $collection, string $key, mixed $value ) : integer Add item to a value (left)
lset ( string $collection, string $key, integer $index, mixed $value ) : boolean Set the value of an element in a list by its index
removeKey ( string $collection, string $key ) : integer Delete Key(s)
renameCollection ( $newname, $db = null )
rpush ( string $collection, string $key, mixed $value ) : integer Add item to a value (right)
save ( $collection, &$data )
setKey ( string $collection, string $key, mixed $value ) Set value for specific key

메소드 상세

__call() 공개 메소드

public __call ( $method, $args )

__construct() 공개 메소드

public __construct ( $server, $options = [] )

decrKey() 공개 메소드

Decrement value by x
public decrKey ( string $collection, string $key, integer $by = 1 ) : integer
$collection string
$key string
$by integer
리턴 integer

dropCollection() 공개 메소드

public dropCollection ( $name, $db = null )

getKey() 공개 메소드

Get value for specific key
public getKey ( string $collection, string $key, mixed $default = null ) : mixed
$collection string
$key string
$default mixed
리턴 mixed

hdel() 공개 메소드

Delete one or more hash fields
public hdel ( string $key ) : integer
$key string
리턴 integer

hexists() 공개 메소드

Determine if a hash field exists
public hexists ( string $collection, string $key, string $field ) : boolean
$collection string
$key string
$field string
리턴 boolean

hget() 공개 메소드

Get the value of a hash field
public hget ( string $collection, string $key, string $field, mixed $default = null ) : mixed
$collection string
$key string
$field string
$default mixed
리턴 mixed

hgetall() 공개 메소드

Get all the fields and values in a hash
public hgetall ( string $key ) : array
$key string
리턴 array

hincrby() 공개 메소드

Increment the integer value of a hash field by the given number
public hincrby ( $collection, string $key, string $field, integer $by = 1 ) : integer
$key string
$field string
$by integer
리턴 integer

hkeys() 공개 메소드

Get all the fields in a hash
public hkeys ( string $key ) : array
$key string
리턴 array

hlen() 공개 메소드

Get the number of fields in a hash
public hlen ( string $key ) : integer
$key string
리턴 integer

hmget() 공개 메소드

Get the values of all the given hash fields
public hmget ( string $key ) : array
$key string
리턴 array

hmset() 공개 메소드

Set multiple hash fields to multiple values
public hmset ( string $key )
$key string

hset() 공개 메소드

Set the string value of a hash field
public hset ( string $collection, string $key, string $field, mixed $value )
$collection string
$key string
$field string
$value mixed

hvals() 공개 메소드

Get all the values in a hash
public hvals ( string $key ) : array
$key string
리턴 array

incrKey() 공개 메소드

Increment value by x
public incrKey ( string $collection, string $key, integer $by = 1 ) : integer
$collection string
$key string
$by integer
리턴 integer

insert() 공개 메소드

public insert ( $collection, &$doc )

keyExists() 공개 메소드

Check if key exists
public keyExists ( string $collection, string $key )
$collection string @param string $collection
$key string

lindex() 공개 메소드

Get an element from a list by its index
public lindex ( string $collection, string $key, integer $index ) : mixed
$collection string
$key string
$index integer
리턴 mixed

lpush() 공개 메소드

Add item to a value (left)
public lpush ( string $collection, string $key, mixed $value ) : integer
$collection string @param string $collection
$key string
$value mixed
리턴 integer

lset() 공개 메소드

Set the value of an element in a list by its index
public lset ( string $collection, string $key, integer $index, mixed $value ) : boolean
$collection string
$key string
$index integer
$value mixed
리턴 boolean

removeKey() 공개 메소드

Delete Key(s)
public removeKey ( string $collection, string $key ) : integer
$collection string
$key string
리턴 integer

renameCollection() 공개 메소드

public renameCollection ( $newname, $db = null )

rpush() 공개 메소드

Add item to a value (right)
public rpush ( string $collection, string $key, mixed $value ) : integer
$collection string @param string $collection
$key string
$value mixed
리턴 integer

save() 공개 메소드

public save ( $collection, &$data )

setKey() 공개 메소드

Set value for specific key
public setKey ( string $collection, string $key, mixed $value )
$collection string
$key string
$value mixed

프로퍼티 상세

$driver 보호되어 있는 프로퍼티

protected $driver