TwistPHP Documentation

Record

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

Type: Model

Record — Simply edit/delete a mysql record from any table in an object orientated way. Commit must be called in order to may changes permanent apart from delete which will also make a permanent deletion upon method call.

Example Usage

<?php
//Call the function detectAutoIncrement with the example vars
$resRecord = new \Twist\Core\Models\Database\Record();
$resRecord -> detectAutoIncrement();

Method List

Method Access Returns
__constructconstructvoid
__destructpublicvoid
detectAutoIncrementprotectedvoid
nullAutoIncrementprotectedvoid
fieldspublicvoid
valuespublicvoid
getpublicvoid
setpublicvoid
deletepublicvoid
commitpublicvoid
sqlpublicvoid
queryValuesprotectedvoid
whereClauseprotectedvoid