Class Exists
Check if the input is existing file or directory
-
Wei\Base
-
Wei\Validator\BaseValidator
-
Wei\Validator\Exists
Methods summary
protected
boolean
|
#
doValidate( mixed $input )
Validate the input value (ignore the $negative property)
Validate the input value (ignore the $negative property)
Parameters
- $input
- The input to be validated
Returns
boolean
|
Methods inherited from Wei\Validator\BaseValidator
__invoke(),
addError(),
getErrors(),
getFirstMessage(),
getJoinedMessage(),
getMessages(),
getName(),
hasError(),
isString(),
isValid(),
loadTranslationMessages(),
setMessages(),
setName(),
storeOption()
|
Properties summary
protected
string
|
$notFoundMessage
|
#
'%name% must be an existing file or directory'
|
protected
string
|
$negativeMessage
The common message for negative validator
The common message for negative validator
|
#
'%name% must be a non-existing file or directory'
|