public static function Transaction::rollbackIfFalse in Transaction 6
Same name and namespace in other branches
- 5 transaction.module \Transaction::rollbackIfFalse()
If the given value is FALSE (value AND type), roll back the current transaction.
Parameters
boolean $var Roll back the current transaction iff TRUE.:
File
- ./
transaction.module, line 55 - Provides a database transaction system for use with InnoDB tables in MySQL.
Class
- Transaction
- Provides a nestable transaction system for handling commits and rollbacks.
Code
public static function rollbackIfFalse($var) {
if ($var === FALSE) {
self::rollback();
}
}