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

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

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

Метод Описание
__construct ( MongoDB\Driver\WriteResult $writeResult ) Constructor.
getDeletedCount ( ) : integer Return the number of documents that were deleted.
isAcknowledged ( ) : boolean Return whether this delete was acknowledged by the server.

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

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

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

getDeletedCount() публичный Метод

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

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

If the delete was not acknowledged, other fields from the WriteResult (e.g. deletedCount) will be undefined.
public isAcknowledged ( ) : boolean
Результат boolean