PATH:
home
/
lab2454c
/
internationalminersbank.com
/
backup
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
<?php namespace Illuminate\Database; class DatabaseTransactionsManager { /** * All of the recorded transactions. * * @var \Illuminate\Support\Collection */ protected $transactions; /** * Create a new database transactions manager instance. * * @return void */ public function __construct() { $this->transactions = collect(); } /** * Start a new database transaction. * * @param string $connection * @param int $level * @return void */ public function begin($connection, $level) { $this->transactions->push( new DatabaseTransactionRecord($connection, $level) ); } /** * Rollback the active database transaction. * * @param string $connection * @param int $level * @return void */ public function rollback($connection, $level) { $this->transactions = $this->transactions->reject(function ($transaction) use ($connection, $level) { return $transaction->connection == $connection && $transaction->level > $level; })->values(); } /** * Commit the active database transaction. * * @param string $connection * @return void */ public function commit($connection) { [$forThisConnection, $forOtherConnections] = $this->transactions->partition( function ($transaction) use ($connection) { return $transaction->connection == $connection; } ); $this->transactions = $forOtherConnections->values(); $forThisConnection->map->executeCallbacks(); } /** * Register a transaction callback. * * @param callable $callback * @return void */ public function addCallback($callback) { if ($current = $this->transactions->last()) { return $current->addCallback($callback); } call_user_func($callback); } /** * Get all the transactions. * * @return \Illuminate\Support\Collection */ public function getTransactions() { return $this->transactions; } }
[-] ConfigurationUrlParser.php
[edit]
[-] QueryException.php
[edit]
[-] composer.json
[edit]
[+]
Connectors
[-] ConnectionInterface.php
[edit]
[+]
..
[-] ConnectionResolverInterface.php
[edit]
[-] Seeder.php
[edit]
[-] MultipleRecordsFoundException.php
[edit]
[+]
Query
[+]
Migrations
[-] DatabaseTransactionsManager.php
[edit]
[+]
Events
[-] RecordsNotFoundException.php
[edit]
[-] DetectsConcurrencyErrors.php
[edit]
[-] PostgresConnection.php
[edit]
[-] DatabaseServiceProvider.php
[edit]
[-] SqlServerConnection.php
[edit]
[+]
Eloquent
[-] Connection.php
[edit]
[-] LICENSE.md
[edit]
[+]
DBAL
[+]
PDO
[-] MigrationServiceProvider.php
[edit]
[+]
Console
[+]
Capsule
[-] DatabaseManager.php
[edit]
[-] Grammar.php
[edit]
[-] ConnectionResolver.php
[edit]
[-] DatabaseTransactionRecord.php
[edit]
[-] MySqlConnection.php
[edit]
[-] README.md
[edit]
[+]
Concerns
[-] SQLiteConnection.php
[edit]
[-] LazyLoadingViolationException.php
[edit]
[-] DetectsLostConnections.php
[edit]
[-] ClassMorphViolationException.php
[edit]
[+]
Schema