TwistPHP Documentation

all

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

allGet all the records from a database table.

Parameters

Name Type Description
[$strOrderBy = null]stringn/a
[$strDirection = 'ASC']stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strOrderBy null;
$strDirection 'ASC';

//Call the function all with the example vars
$resRecords = new \Twist\Core\Models\Database\Records();
$resRecords -> all($strOrderBy$strDirection);