|
Revision 2, 1.3 kB
(checked in by schst, 5 years ago)
|
initial import on new server
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
class patForms_Filter |
|---|
| 21 |
{ |
|---|
| 22 |
|
|---|
| 23 |
* type of the filter |
|---|
| 24 |
* |
|---|
| 25 |
* Possible values are: |
|---|
| 26 |
* - PATFORMS_FILTER_TYPE_HTTP |
|---|
| 27 |
* - PATFORMS_FILTER_TYPE_PHP |
|---|
| 28 |
* |
|---|
| 29 |
* @access private |
|---|
| 30 |
*/ |
|---|
| 31 |
var $_type = PATFORMS_FILTER_TYPE_PHP; |
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
* get the type of the filter as defined |
|---|
| 35 |
* in the_type property |
|---|
| 36 |
* |
|---|
| 37 |
* @access public |
|---|
| 38 |
* @return integer filter type |
|---|
| 39 |
*/ |
|---|
| 40 |
function getType() |
|---|
| 41 |
{ |
|---|
| 42 |
return $this->_type; |
|---|
| 43 |
} |
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 |
* Filter value that is returned by patForms |
|---|
| 47 |
* |
|---|
| 48 |
* This method is applied when patForms_Element::getValue() |
|---|
| 49 |
* or patForms::getValues() is called. |
|---|
| 50 |
* |
|---|
| 51 |
* @abstract |
|---|
| 52 |
* @access public |
|---|
| 53 |
* @param string value |
|---|
| 54 |
* @return mixed filtered value |
|---|
| 55 |
*/ |
|---|
| 56 |
function out( $value ) |
|---|
| 57 |
{ |
|---|
| 58 |
return $value; |
|---|
| 59 |
} |
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 |
* Filter value that is passed to patForms |
|---|
| 63 |
* |
|---|
| 64 |
* This method is applied when patForms_Element::setValue() |
|---|
| 65 |
* or patForms::setValues() is called. |
|---|
| 66 |
* |
|---|
| 67 |
* @abstract |
|---|
| 68 |
* @access public |
|---|
| 69 |
* @param mixed value |
|---|
| 70 |
* @return mixed filtered value |
|---|
| 71 |
*/ |
|---|
| 72 |
function in( $value ) |
|---|
| 73 |
{ |
|---|
| 74 |
return $value; |
|---|
| 75 |
} |
|---|
| 76 |
} |
|---|
| 77 |
?> |
|---|