trait LoggableCollectionTrait (View source)

{@internal It's used by loggable collection classes }}

Properties

protected callable $loggerCallable The logger callable.

Methods

log(array $log)

Log something using the configured logger callable.

aggregate(array $pipeline, array $options = [])

No description

batchInsert(array $a, array $options = [])

No description

count(array $query = [], $limitOrOptions = 0, $skip = 0)

No description

deleteIndex($keys)

No description

deleteIndexes()

No description

distinct($field, array $query = [], array $options = [])

No description

drop()

No description

ensureIndex(array $keys, array $options = [])

No description

find(array $query = [], array $fields = [])

No description

findAndRemove(array $query, array $options = [])

No description

findAndUpdate(array $query, array $newObj, array $options = [])

No description

findOne(array $query = [], array $fields = [])

No description

getDBRef(array $reference)

No description

getIndexInfo()

No description

group($keys, array $initial, $reduce, array $options = [])

No description

insert(array $a, array $options = [])

No description

mapReduce($map, $reduce, $out = ['inline' => true], array $query = [], array $options = [])

No description

near($near, array $query = [], array $options = [])

No description

remove(array $query, array $options = [])

No description

save(array $a, array $options = [])

No description

update($query, array $newObj, array $options = [])

No description

validate($scanData = false)

No description

Details

log(array $log)

Log something using the configured logger callable.

Parameters

array $log

See also

Loggable::log()

aggregate(array $pipeline, array $options = [])

Parameters

array $pipeline
array $options

See also

Collection::aggregate()

batchInsert(array $a, array $options = [])

Parameters

array $a
array $options

See also

Collection::batchInsert()

count(array $query = [], $limitOrOptions = 0, $skip = 0)

Parameters

array $query
$limitOrOptions
$skip

See also

Collection::count()

deleteIndex($keys)

Parameters

$keys

See also

Collection::deleteIndex()

deleteIndexes()

See also

Collection::deleteIndexes()

distinct($field, array $query = [], array $options = [])

Parameters

$field
array $query
array $options

See also

Collection::distinct()

drop()

See also

Collection::drop()

ensureIndex(array $keys, array $options = [])

Parameters

array $keys
array $options

See also

Collection::ensureIndex()

find(array $query = [], array $fields = [])

Parameters

array $query
array $fields

See also

Collection::find()

findAndRemove(array $query, array $options = [])

Parameters

array $query
array $options

See also

Collection::findAndRemove()

findAndUpdate(array $query, array $newObj, array $options = [])

Parameters

array $query
array $newObj
array $options

See also

Collection::findAndUpdate()

findOne(array $query = [], array $fields = [])

Parameters

array $query
array $fields

See also

Collection::findOne()

getDBRef(array $reference)

Parameters

array $reference

See also

Collection::getDBRef()

getIndexInfo()

See also

Collection::getIndexInfo()

group($keys, array $initial, $reduce, array $options = [])

Parameters

$keys
array $initial
$reduce
array $options

See also

Collection::group()

insert(array $a, array $options = [])

Parameters

array $a
array $options

See also

Collection::insert()

mapReduce($map, $reduce, $out = ['inline' => true], array $query = [], array $options = [])

Parameters

$map
$reduce
$out
array $query
array $options

See also

Collection::mapReduce()

near($near, array $query = [], array $options = [])

Parameters

$near
array $query
array $options

See also

Collection::near()

remove(array $query, array $options = [])

Parameters

array $query
array $options

See also

Collection::remove()

save(array $a, array $options = [])

Parameters

array $a
array $options

See also

Collection::save()

update($query, array $newObj, array $options = [])

Parameters

$query
array $newObj
array $options

See also

Collection::update()

validate($scanData = false)

Parameters

$scanData

See also

Collection::validate()