TwistPHP Documentation

ProtocolJSON

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

Type: Model

ProtocolJSON — {data:class-info/description}

Example Usage

<?php
//Set the variables for the example
$strTable 'foo';
$arrFields = array(=> 'foo'=> 'bar');
$strAutoIncrement null;

//Call the function createTable with the example vars
$resProtocolJSON = new \Twist\Core\Models\Database\ProtocolJSON();
$resProtocolJSON -> createTable($strTable$arrFields$strAutoIncrement);

Method List

Method Access Returns
connectpublicvoid
createDBpublicvoid
createTablepublicvoid
deleteTablepublicvoid
getTableInfopublicvoid
insertRowpublicvoid
selectRowpublicvoid
updateRowpublicvoid
deleteRowpublicvoid
testDataValidityprotectedvoid
processDataWhereprotectedvoid
setErrorpublicvoid
writeChangespublicvoid
processQueryTableprotectedvoid
processQueryOptionsprotectedvoid
processQueryWhereprotectedvoid
processQueryOrderprotectedvoid
processQueryLimitprotectedvoid
numberRowspublicvoid
insertIdpublicvoid
affectedRowspublicvoid
querypublicvoid
fetchArraypublicvoid
freeResultpublicvoid
orderByColumnpublicvoid