TwistPHP Documentation

Records

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

Type: Model

Records — Manage rows in your SQL database in an object orientated way. The model allows you to call up single records as objects or arrays. You can edit a record object and commit back to the database or count, search or delete from your tables with a single function call.

Example Usage

<?php
//Call the function create with the example vars
$resRecords = new \Twist\Core\Models\Database\Records();
$resRecords -> create();

Method List

Method Access Returns
__setTablepublicvoid
__setDatabasepublicvoid
createpublicvoid
getpublicvoid
copypublicvoid
deletepublicvoid
countpublicvoid
findpublicvoid
allpublicvoid
buildWhereClauseprotectedvoid