File path: dist/twist/Core/Models/Database/Records.model.php
Namespace: Twist\Core\Models\Database
find
— Get/Search data in the database, leaving all the parameters blank will return all records form the database. Set the parameters accordingly if you need to filter, order or limit.
If the filter value contains a '%' it will be filtered as a LIKE, if the value contains an array it will be imploded and filtered as an IN otherwise filtering will be done as an EQUALS.
Name | Description |
---|---|
[$mxdValue = null] | n/a |
[$strField = null] | n/a |
[$strOrderBy = null] | n/a |
[$strDirection = 'ASC'] | n/a |
[$intLimit = null] | n/a |
[$intOffset = null] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$mxdValue = null;
$strField = null;
$strOrderBy = null;
$strDirection = 'ASC';
$intLimit = null;
$intOffset = null;
//Call the function find with the example vars
$resRecords = new \Twist\Core\Models\Database\Records();
$resRecords -> find($mxdValue, $strField, $strOrderBy, $strDirection, $intLimit, $intOffset);