TwistPHP Documentation

ProtocolPDO

File path: dist/twist/Core/Models/Database/ProtocolPDO.model.php
Namespace: Twist\Core\Models\Database
Extends:

Type: Model

ProtocolPDO — The library of PDO, this will allow the Database class to communicate with a MySQL server using the advanced PDO Protocol

Example Usage

<?php
//Call the function connectionError with the example vars
$resProtocolPDO = new \Twist\Core\Models\Database\ProtocolPDO();
$resProtocolPDO -> connectionError();

Method List

Method Access Returns
connectpublicvoid
connectedpublicvoid
connectionErrorpublicvoid
closepublicvoid
pingpublicvoid
selectDatabasepublicvoid
setCharsetpublicvoid
escapeStringpublicvoid
numberRowspublicvoid
insertIdpublicvoid
affectedRowspublicvoid
querypublicvoid
fetchArraypublicvoid
freeResultpublicvoid
errorStringpublicvoid
errorNumberpublicvoid
autocommitpublicvoid
commitpublicvoid
rollbackpublicvoid
serverInfopublicvoid