diff options
author | jerkob <jsterry@gmail.com> | 2020-01-24 00:48:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-24 00:48:28 +0100 |
commit | f43a8fb104152f9fc2953967efb01cf542c1b338 (patch) | |
tree | 3816b3a4018061ba46311551ad6cd1a2e6742524 /system | |
parent | 0db8b60492cc98ef3c85b986fc11e9dac6d7ca6c (diff) |
Add a trans_depth function
Enables retrieval of the current _trans_depth
Diffstat (limited to 'system')
-rw-r--r-- | system/database/DB_driver.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index b4f16b905..733522284 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -825,6 +825,18 @@ abstract class CI_DB_driver { { return $this->_trans_status; } + + // -------------------------------------------------------------------- + + /** + * Lets you retrieve the transaction depth + * + * @return int + */ + public function trans_depth() + { + return $this->_trans_depth; + } // -------------------------------------------------------------------- |