PHP Class Phalcon\Db\Adapter\MongoDB\DeleteResult

Afficher le fichier Open project: phalcon/incubator

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

getDeletedCount() public méthode

This method should only be called if the write was acknowledged.
See also: DeleteResult::isAcknowledged()
public getDeletedCount ( ) : integer
Résultat integer

isAcknowledged() public méthode

If the delete was not acknowledged, other fields from the WriteResult (e.g. deletedCount) will be undefined.
public isAcknowledged ( ) : boolean
Résultat boolean