PHP 클래스 yii2tech\balance\ManagerDbTransaction

또한 보기: Manager
부터: 1.0
저자: Paul Klimov ([email protected])
상속: extends Manager
파일 보기 프로젝트 열기: yii2tech/balance 1 사용 예제들

공개 메소드들

메소드 설명
increase ( $account, $amount, $data = [] )
revert ( $transactionId, $data = [] )
transfer ( $from, $to, $amount, $data = [] )

보호된 메소드들

메소드 설명
beginDbTransaction ( ) Begins transaction.
commitDbTransaction ( ) Commits current transaction.
createDbTransaction ( ) : object | Transaction | null Creates transaction instance, actually beginning transaction.
rollBackDbTransaction ( ) Rolls back current transaction.

메소드 상세

beginDbTransaction() 보호된 메소드

Begins transaction.
protected beginDbTransaction ( )

commitDbTransaction() 보호된 메소드

Commits current transaction.
protected commitDbTransaction ( )

createDbTransaction() 추상적인 보호된 메소드

If transactions are not supported, null will be returned.
abstract protected createDbTransaction ( ) : object | Transaction | null
리턴 object | yii\db\Transaction | null transaction instance, `null` if transaction is not supported.

increase() 공개 메소드

public increase ( $account, $amount, $data = [] )

revert() 공개 메소드

public revert ( $transactionId, $data = [] )

rollBackDbTransaction() 보호된 메소드

Rolls back current transaction.
protected rollBackDbTransaction ( )

transfer() 공개 메소드

public transfer ( $from, $to, $amount, $data = [] )