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

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

공개 메소드들

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