PHP 클래스 Phalcon\Db\Adapter\MongoDB\DeleteResult

파일 보기 프로젝트 열기: phalcon/incubator

공개 메소드들

메소드 설명
__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