Changeset 731
- Timestamp:
- 06/12/07 22:14:34 (1 year ago)
- Files:
-
- trunk/src/main/php/net/stubbles/ipo/request/broker (added)
- trunk/src/main/php/net/stubbles/ipo/request/broker/annotations (added)
- trunk/src/main/php/net/stubbles/ipo/request/broker/annotations/stubAbstractFilterAnnotation.php (added)
- trunk/src/main/php/net/stubbles/ipo/request/broker/annotations/stubFilterAnnotation.php (added)
- trunk/src/main/php/net/stubbles/ipo/request/broker/annotations/stubFloatFilterAnnotation.php (added)
- trunk/src/main/php/net/stubbles/ipo/request/broker/annotations/stubHTTPURLFilterAnnotation.php (added)
- trunk/src/main/php/net/stubbles/ipo/request/broker/annotations/stubIntegerFilterAnnotation.php (added)
- trunk/src/main/php/net/stubbles/ipo/request/broker/annotations/stubMailFilterAnnotation.php (added)
- trunk/src/main/php/net/stubbles/ipo/request/broker/annotations/stubPasswordFilterAnnotation.php (added)
- trunk/src/main/php/net/stubbles/ipo/request/broker/annotations/stubStringFilterAnnotation.php (added)
- trunk/src/main/php/net/stubbles/ipo/request/broker/annotations/stubTextFilterAnnotation.php (added)
- trunk/src/main/php/net/stubbles/ipo/request/broker/stubRequestBroker.php (added)
- trunk/src/main/php/net/stubbles/ipo/request/broker/stubRequestBrokerException.php (added)
- trunk/src/main/php/net/stubbles/ipo/request/filters/stubAbstractStringFilter.php (modified) (2 diffs)
- trunk/src/main/php/net/stubbles/ipo/request/filters/stubFilter.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/ipo/request/filters/stubHTTPURLFilter.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/ipo/request/filters/stubHtmlOutputFilter.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/ipo/request/filters/stubMD5Filter.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/ipo/request/filters/stubNumberFilter.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/ipo/request/filters/stubPasswordFilter.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/ipo/request/filters/stubStringFilter.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/ipo/request/filters/stubTextFilter.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/util/Binford.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/util/validators/stubMaxLengthValidator.php (modified) (3 diffs)
- trunk/src/main/php/net/stubbles/util/validators/stubMaxNumberValidator.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/util/validators/stubMinLengthValidator.php (modified) (2 diffs)
- trunk/src/main/php/net/stubbles/util/validators/stubMinNumberValidator.php (modified) (2 diffs)
- trunk/src/main/php/net/stubbles/util/validators/stubRegexValidator.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/ipo/IPOTestSuite.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/ipo/request/broker (added)
- trunk/src/test/php/net/stubbles/ipo/request/broker/TestBrokerClasses.php (added)
- trunk/src/test/php/net/stubbles/ipo/request/broker/annotations (added)
- trunk/src/test/php/net/stubbles/ipo/request/broker/annotations/stubAbstractFilterAnnotationTestCase.php (added)
- trunk/src/test/php/net/stubbles/ipo/request/broker/annotations/stubFloatFilterAnnotationTestCase.php (added)
- trunk/src/test/php/net/stubbles/ipo/request/broker/annotations/stubHTTPURLFilterAnnotationTestCase.php (added)
- trunk/src/test/php/net/stubbles/ipo/request/broker/annotations/stubIntegerFilterAnnotationTestCase.php (added)
- trunk/src/test/php/net/stubbles/ipo/request/broker/annotations/stubMailFilterAnnotationTestCase.php (added)
- trunk/src/test/php/net/stubbles/ipo/request/broker/annotations/stubPasswordFilterAnnotationTestCase.php (added)
- trunk/src/test/php/net/stubbles/ipo/request/broker/annotations/stubStringFilterAnnotationTestCase.php (added)
- trunk/src/test/php/net/stubbles/ipo/request/broker/annotations/stubTextFilterAnnotationTestCase.php (added)
- trunk/src/test/php/net/stubbles/ipo/request/broker/stubRequestBrokerTestCase.php (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/ipo/request/filters/stubAbstractStringFilter.php
r678 r731 45 45 46 46 /** 47 * returns the validator for checking the minimum length of the string 48 * 49 * @return stubValidator 50 */ 51 public function getMinLengthValidator() 52 { 53 return $this->minLength; 54 } 55 56 /** 47 57 * set a max length validator 48 58 * … … 52 62 { 53 63 $this->maxLength = $maxLength; 64 } 65 66 /** 67 * returns the validator for checking the maximum length of the string 68 * 69 * @return stubValidator 70 */ 71 public function getMaxLengthValidator() 72 { 73 return $this->maxLength; 54 74 } 55 75 trunk/src/main/php/net/stubbles/ipo/request/filters/stubFilter.php
r142 r731 36 36 37 37 /** 38 * set a default value in case the value to filter is not set 39 * 40 * @param mixed $defaultValue 41 */ 42 public function setDefaultValue($defaultValue); 43 44 /** 38 45 * returns true if the filter has a default value in case the value to filter is not set 39 46 * trunk/src/main/php/net/stubbles/ipo/request/filters/stubHTTPURLFilter.php
r729 r731 46 46 47 47 /** 48 * checks whether DNS check is enabled 49 * 50 * @return bool 51 */ 52 public function isDNSCheckEnabled() 53 { 54 return $this->checkDNS; 55 } 56 57 /** 48 58 * check if value is a valid HTTP URL 49 59 * trunk/src/main/php/net/stubbles/ipo/request/filters/stubHtmlOutputFilter.php
r142 r731 39 39 40 40 /** 41 * set a default value in case the value to filter is not set 42 * 43 * @param mixed $defaultValue 44 */ 45 public function setDefaultValue($defaultValue) 46 { 47 // not supported by this filter 48 } 49 50 /** 41 51 * returns true if the filter has a default value in case the value to filter is not set 42 52 * trunk/src/main/php/net/stubbles/ipo/request/filters/stubMD5Filter.php
r375 r731 84 84 85 85 /** 86 * set a default value in case the value to filter is not set 87 * 88 * @param mixed $defaultValue 89 */ 90 public function setDefaultValue($defaultValue) 91 { 92 // not supported by this filter 93 } 94 95 /** 86 96 * returns true if the filter has a default value in case the value to filter is not set 87 97 * trunk/src/main/php/net/stubbles/ipo/request/filters/stubNumberFilter.php
r678 r731 51 51 52 52 /** 53 * returns the validator for minimum values 54 * 55 * @return stubValidator 56 */ 57 public function getMinValidator() 58 { 59 return $this->minValidator; 60 } 61 62 /** 63 * returns the validator for maximum values 64 * 65 * @return stubValidator 66 */ 67 public function getMaxValidator() 68 { 69 return $this->maxValidator; 70 } 71 72 /** 53 73 * checks if given value exceeds borders 54 74 * trunk/src/main/php/net/stubbles/ipo/request/filters/stubPasswordFilter.php
r678 r731 49 49 $this->rveFactory = $rveFactory; 50 50 $this->minLength = $minLength; 51 } 52 53 /** 54 * returns the validator for checking the minimum length of the password 55 * 56 * @return stubValidator 57 */ 58 public function getMinLengthValidator() 59 { 60 return $this->minLength; 51 61 } 52 62 trunk/src/main/php/net/stubbles/ipo/request/filters/stubStringFilter.php
r678 r731 40 40 41 41 /** 42 * returns the validator to use for checking the password 43 * 44 * @return stubValidator 45 */ 46 public function getRegexValidator() 47 { 48 return $this->regex; 49 } 50 51 /** 42 52 * specialized filtering 43 53 * trunk/src/main/php/net/stubbles/ipo/request/filters/stubTextFilter.php
r678 r731 53 53 54 54 /** 55 * returns the list of allowed tags 56 * 57 * @return array<string> 58 */ 59 public function getAllowedTags() 60 { 61 return $this->allowedTags; 62 } 63 64 /** 55 65 * specialized filtering 56 66 * trunk/src/main/php/net/stubbles/util/Binford.php
r473 r731 82 82 83 83 /** 84 * set a default value in case the value to filter is not set 85 * 86 * @param mixed $defaultValue 87 */ 88 public function setDefaultValue($defaultValue) 89 { 90 // not supported by this filter 91 } 92 93 /** 84 94 * returns true if the filter has a default value in case the value to filter is not set 85 95 * trunk/src/main/php/net/stubbles/util/validators/stubMaxLengthValidator.php
r151 r731 22 22 */ 23 23 protected $maxLength; 24 24 25 25 /** 26 26 * constructor … … 32 32 $this->maxLength = $maxLength; 33 33 } 34 34 35 /** 36 * returns the maximum length to use for validation 37 * 38 * @return int 39 */ 40 public function getValue() 41 { 42 return $this->maxLength; 43 } 44 35 45 /** 36 46 * validate that the given value is not longer than the maximum length … … 47 57 return true; 48 58 } 49 59 50 60 /** 51 61 * returns a list of criteria for the validator trunk/src/main/php/net/stubbles/util/validators/stubMaxNumberValidator.php
r678 r731 34 34 35 35 /** 36 * returns the minimum value to use for validation 37 * 38 * @return double 39 */ 40 public function getValue() 41 { 42 return $this->maxValue; 43 } 44 45 /** 36 46 * validate that the given value is smaller than or equal to the maximum value 37 47 * trunk/src/main/php/net/stubbles/util/validators/stubMinLengthValidator.php
r678 r731 19 19 * the minimum length to use for validation 20 20 * 21 * @var string21 * @var int 22 22 */ 23 23 protected $minLength; … … 31 31 { 32 32 $this->minLength = $minLength; 33 } 34 35 /** 36 * returns the minimum length to use for validation 37 * 38 * @return int 39 */ 40 public function getValue() 41 { 42 return $this->minLength; 33 43 } 34 44 trunk/src/main/php/net/stubbles/util/validators/stubMinNumberValidator.php
r678 r731 19 19 * the minimum value to use for validation 20 20 * 21 * @var string21 * @var double 22 22 */ 23 23 protected $minValue; … … 31 31 { 32 32 $this->minValue = $minValue; 33 } 34 35 /** 36 * returns the minimum value to use for validation 37 * 38 * @return double 39 */ 40 public function getValue() 41 { 42 return $this->minValue; 33 43 } 34 44 trunk/src/main/php/net/stubbles/util/validators/stubRegexValidator.php
r678 r731 43 43 44 44 /** 45 * returns the regular expression to use for validation 46 * 47 * @return string 48 */ 49 public function getValue() 50 { 51 return $this->regex; 52 } 53 54 /** 45 55 * validate that the given value complies with the regular expression 46 56 * trunk/src/test/php/net/stubbles/ipo/IPOTestSuite.php
r719 r731 28 28 $this->addTestFile($dir . '/request/stubRequestValueErrorTestCase.php'); 29 29 30 $this->addTestFile($dir . '/request/broker/stubRequestBrokerTestCase.php'); 31 $this->addTestFile($dir . '/request/broker/annotations/stubAbstractFilterAnnotationTestCase.php'); 32 $this->addTestFile($dir . '/request/broker/annotations/stubFloatFilterAnnotationTestCase.php'); 33 $this->addTestFile($dir . '/request/broker/annotations/stubHTTPURLFilterAnnotationTestCase.php'); 34 $this->addTestFile($dir . '/request/broker/annotations/stubIntegerFilterAnnotationTestCase.php'); 35 $this->addTestFile($dir . '/request/broker/annotations/stubMailFilterAnnotationTestCase.php'); 36 $this->addTestFile($dir . '/request/broker/annotations/stubPasswordFilterAnnotationTestCase.php'); 37 $this->addTestFile($dir . '/request/broker/annotations/stubStringFilterAnnotationTestCase.php'); 38 $this->addTestFile($dir . '/request/broker/annotations/stubTextFilterAnnotationTestCase.php'); 39 30 40 $this->addTestFile($dir . '/request/filters/stubFloatFilterTestCase.php'); 31 41 $this->addTestFile($dir . '/request/filters/stubHTTPURLFilterTestCase.php');
