fluxcms /inc/patForms/Filter/Strtolower.php

Language PHP Lines 66
MD5 Hash 891ed372db1350395870699f613c356d
Repository https://github.com/chregu/fluxcms.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
 * patForms strtolower filter
 *
 * Converts value to lowercase
 *
 * $Id$
 *
 * @package		patForms
 * @subpackage	Filter
 */

/**
 * patForms strtolower filter
 *
 * Converts value to lowercase
 *
 * $Id$
 *
 * @package		patForms
 * @subpackage	Filter
 * @author		Sebastian 'The Argh' Mordziol <argh@php-tools.net>
 * @license		LGPL, see license.txt for details
 * @link		http://www.php-tools.net
 * @version		$Revision: 1.1 $
 */
class patForms_Filter_Strtolower extends patForms_Filter
{
   /**
	* type of the filter
	*
	* @access	private
	*/
	var $_type	=	PATFORMS_FILTER_TYPE_HTTP;

   /**
	* Filter value that is returned by patForms
	*
	* This method is applied when patForms_Element::getValue()
	* or patForms::getValues() is called.
	*
	* @abstract
	* @access	public
	* @param	string	value
	* @return	float	filtered value
	*/
	function out( $value )
	{
		return $value;
	}

   /**
	* Filter value that is passed to patForms
	*
	* @abstract
	* @access	public
	* @param	mixed	value
	* @return	mixed	filtered value
	*/
	function in( $value )
	{
		$value	=	strtolower( $value );
		return $value;
	}
}
?>
Back to Top