Not used anymore, checked if we could use soap connection. As soap is no longer a reliable interface in LimeSurvey it is deprecated for now.

package Gems
subpackage Validate
author Michiel Rook
copyright Copyright (c) 2011 Erasmus MC
license New BSD License

 Methods

Returns true if and only if $value meets the validation requirements

isValid(mixed $value, $context = array()) : boolean

If $value fails validation, then this method returns false, and getMessages() will return an array of messages that explain why the validation failed.

todo ip2long is broken on Windows, find a replacement

Parameters

$value

mixed

$context

Returns

boolean

 Properties

 

Error messages

$_messageTemplates : array

Default

array(self::ERROR_INVALID_IP => 'One or more IPs are illegal.')

 Constants

 

Error constants

ERROR_INVALID_IP = 'invalidIPInRange'