TwistPHP Documentation

count

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

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.

Parameters

Name Type Description
[$mxdValue = null]mixedn/a
[$strField = null]stringn/a

Return Values

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

Example

<?php
//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);