| Server IP : 195.130.67.5 / Your IP : 216.73.217.127 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/modip/modules/views/plugins/ |
Upload File : |
<?php
// $Id: views_plugin_argument_validate_numeric.inc,v 1.1 2008/09/03 19:21:30 merlinofchaos Exp $
/**
* @file
* Contains the numeric argument validator plugin.
*/
/**
* Validate whether an argument is numeric or not.
*
* @ingroup views_argument_validate_plugins
*/
class views_plugin_argument_validate_numeric extends views_plugin_argument_validate {
var $option_name = 'validate_argument_numeric';
/**
* Only let users with PHP block visibility permissions set/modify this
* validate plugin.
*/
function access() {
return !empty($this->argument->definition['numeric']);
}
function validate_argument($argument) {
return is_numeric($argument);
}
}