src/LikePDO/LikePDO.php
public function beginTransaction()
	{
		if($this->supportTransaction == false)
		{
			throw new LikePDOException("This driver doesn't support transactions");
			return false;
		}
		elseif($this->inTransaction == true)
		{
			throw new LikePDOException("There is already an active transaction");
			return false;
		}
		else
		{
			if(!$this->driver->beginTransaction())
			{
				throw new LikePDOException("Failed to begin transaction");
				return false;
			}
			
			return true;
		}
	}
public function beginTransaction()
	{
		if($this->supportTransaction == false)
		{
			throw new LikePDOException("This driver doesn't support transactions");
			return false;
		}
		elseif($this->inTransaction == true)
		{
			throw new LikePDOException("There is already an active transaction");
			return false;
		}
		else
		{
			if(!$this->driver->beginTransaction())
			{
				throw new LikePDOException("Failed to begin transaction");
				return false;
			}
			
			return true;
		}
	}
public function beginTransaction ( ) { if ( $ this -> supportTransaction == false ) { throw new LikePDOException ( "This driver doesn't support transactions" ) ; return false ; } elseif ( $ this -> inTransaction == true ) { throw new LikePDOException ( "There is already an active transaction" ) ; return false ; } else { if ( ! $ this -> driver -> beginTransaction ( ) ) { throw new LikePDOException ( "Failed to begin transaction" ) ; return false ; } return true ; } }
Initiates a transaction

@return	boolean
Initiates a transaction