TwistPHP Documentation

buildWhereClause

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

buildWhereClauseDynamically build a where clause that will be used to get, search and delete records form the database.
The where clause contains a single parameter and can be a LIKE, Equals or an IN statement.

Parameters

Name Type Description
$mxdValuemixedn/a
$strFieldstringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$mxdValue 'foo-123';
$strField 'foo';

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