TwistPHP Documentation


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

countGet a record count of rows in the selected table. You can filter the results using the field and value parameters.
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 Type Description
[$mxdValue = null]mixedn/a
[$strField = null]stringn/a

Return Values

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


//Set the variables for the example
$mxdValue null;
$strField null;

//Call the function count with the example vars
$resRecords = new \Twist\Core\Models\Database\Records();
$resRecords -> count($mxdValue$strField);