PHP Класс Phalcon\Db\Adapter\MongoDB\UpdateResult

Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( MongoDB\Driver\WriteResult $writeResult ) Constructor.
getMatchedCount ( ) : integer Return the number of documents that were matched by the filter.
getModifiedCount ( ) : integer | null Return the number of documents that were modified.
getUpsertedCount ( ) : integer Return the number of documents that were upserted.
getUpsertedId ( ) : mixed | null Return the ID of the document inserted by an upsert operation.
isAcknowledged ( ) : boolean Return whether this update was acknowledged by the server.

Описание методов

__construct() публичный метод

Constructor.
public __construct ( MongoDB\Driver\WriteResult $writeResult )
$writeResult MongoDB\Driver\WriteResult

getMatchedCount() публичный метод

This method should only be called if the write was acknowledged.
См. также: UpdateResult::isAcknowledged()
public getMatchedCount ( ) : integer
Результат integer

getModifiedCount() публичный метод

This value is undefined (i.e. null) if the write executed as a legacy operation instead of command. This method should only be called if the write was acknowledged.
См. также: UpdateResult::isAcknowledged()
public getModifiedCount ( ) : integer | null
Результат integer | null

getUpsertedCount() публичный метод

This method should only be called if the write was acknowledged.
См. также: UpdateResult::isAcknowledged()
public getUpsertedCount ( ) : integer
Результат integer

getUpsertedId() публичный метод

This value is undefined (i.e. null) if an upsert did not take place. This method should only be called if the write was acknowledged.
См. также: UpdateResult::isAcknowledged()
public getUpsertedId ( ) : mixed | null
Результат mixed | null

isAcknowledged() публичный метод

If the update was not acknowledged, other fields from the WriteResult (e.g. matchedCount) will be undefined and their getter methods should not be invoked.
public isAcknowledged ( ) : boolean
Результат boolean