TwistPHP Documentation

checkInteger

File path: dist/twist/Core/Models/Validate/Validator.model.php
Namespace: Twist\Core\Models\Validate
Extends:

checkInteger

Parameters

Name Type Description
$strKeystringn/a
[$intRangeMin = null]integern/a
[$intRangeMax = null]integern/a
[$blAllowBlank = false]booleann/a
[$blRequired = true]booleann/a
[$blTrim = true]booleann/a

Return Values

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

Example

<?php
//Set the variables for the example
$strKey 'foo';
$intRangeMin null;
$intRangeMax null;
$blAllowBlank false;
$blRequired true;
$blTrim true;

//Call the function checkInteger with the example vars
$resValidator = new \Twist\Core\Models\Validate\Validator();
$resValidator -> checkInteger($strKey$intRangeMin$intRangeMax$blAllowBlank$blRequired$blTrim);