ValidateType.php
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2015 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of the MIT License.
7  *
8  * See the LICENSE file distributed with this work for
9  * additional information.
10  */
12 
14 
15 /**
16  * ValidateType defines the interface for all validator classes.
17  *
18  * @author ingo herwig <ingo@wemove.com>
19  */
20 interface ValidateType {
21 
22  /**
23  * Validate a given value. The options format is type specific.
24  * @param $value The value to validate
25  * @param $message The Message instance used to provide translations
26  * @param $options Optional implementation specific options passed as an associative array
27  * @return Boolean
28  */
29  public function validate($value, Message $message, $options=null);
30 }
31 ?>
ValidateType defines the interface for all validator classes.
Message is used to get localized messages to be used in the user interface.
Definition: Message.php:23
validate($value, Message $message, $options=null)
Validate a given value.