TwistPHP Documentation

testDataValidity

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

testDataValidityTest to see if the fields that are passed in are correct / valid

Parameters

Name Type Description
$strTablestringn/a
$arrDataarrayn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strTable 'foo';
$arrData = array(=> 'foo'=> 'bar');

//Call the function testDataValidity with the example vars
$resProtocolJSON = new \Twist\Core\Models\Database\ProtocolJSON();
$resProtocolJSON -> testDataValidity($strTable$arrData);