Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/lib/internal/Customweb/Database/Driver/PDO/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/lib/internal/Customweb/Database/Driver/PDO/Driver.php
<?php



class Customweb_Database_Driver_PDO_Driver extends Customweb_Database_Driver_AbstractDriver 
implements Customweb_Database_IDriver {

	/**
	 * @var PDO
	 */
	private $pdo;
	
	public function __construct(PDO $pdo) {
		$this->pdo = $pdo;
	}
	
	public function beginTransaction() {
		$this->setTransactionRunning(true);
		$this->pdo->beginTransaction();
	}
	
	public function isTransactionRunning() {
		if (method_exists($this->pdo, 'inTransaction')) {
			return $this->pdo->inTransaction();
		}
		else {
			return parent::isTransactionRunning();
		}
	}

	public function commit() {
		$this->pdo->commit();
		$this->setTransactionRunning(false);
	}

	public function rollBack() {
		$this->pdo->rollBack();
		$this->setTransactionRunning(false);
	}

	public function query($query) {
		return new Customweb_Database_Driver_PDO_Statement($query, $this);
	}

	public function quote($string) {
		return $this->pdo->quote($string);
	}

	public function getPdo() {
		return $this->pdo;
	}
	
}

Spamworldpro Mini