Changeset 731

Show
Ignore:
Timestamp:
06/12/07 22:14:34 (1 year ago)
Author:
mikey
Message:

added net.stubbles.ipo.request.broker

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/ipo/request/filters/stubAbstractStringFilter.php

    r678 r731  
    4545 
    4646    /** 
     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    /** 
    4757     * set a max length validator 
    4858     * 
     
    5262    { 
    5363        $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; 
    5474    } 
    5575 
  • trunk/src/main/php/net/stubbles/ipo/request/filters/stubFilter.php

    r142 r731  
    3636 
    3737    /** 
     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    /** 
    3845     * returns true if the filter has a default value in case the value to filter is not set 
    3946     * 
  • trunk/src/main/php/net/stubbles/ipo/request/filters/stubHTTPURLFilter.php

    r729 r731  
    4646 
    4747    /** 
     48     * checks whether DNS check is enabled 
     49     * 
     50     * @return  bool 
     51     */ 
     52    public function isDNSCheckEnabled() 
     53    { 
     54        return $this->checkDNS; 
     55    } 
     56 
     57    /** 
    4858     * check if value is a valid HTTP URL 
    4959     * 
  • trunk/src/main/php/net/stubbles/ipo/request/filters/stubHtmlOutputFilter.php

    r142 r731  
    3939 
    4040    /** 
     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    /** 
    4151     * returns true if the filter has a default value in case the value to filter is not set 
    4252     * 
  • trunk/src/main/php/net/stubbles/ipo/request/filters/stubMD5Filter.php

    r375 r731  
    8484 
    8585    /** 
     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    /** 
    8696     * returns true if the filter has a default value in case the value to filter is not set 
    8797     * 
  • trunk/src/main/php/net/stubbles/ipo/request/filters/stubNumberFilter.php

    r678 r731  
    5151 
    5252    /** 
     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    /** 
    5373     * checks if given value exceeds borders 
    5474     * 
  • trunk/src/main/php/net/stubbles/ipo/request/filters/stubPasswordFilter.php

    r678 r731  
    4949        $this->rveFactory = $rveFactory; 
    5050        $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; 
    5161    } 
    5262 
  • trunk/src/main/php/net/stubbles/ipo/request/filters/stubStringFilter.php

    r678 r731  
    4040 
    4141    /** 
     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    /** 
    4252     * specialized filtering 
    4353     * 
  • trunk/src/main/php/net/stubbles/ipo/request/filters/stubTextFilter.php

    r678 r731  
    5353 
    5454    /** 
     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    /** 
    5565     * specialized filtering 
    5666     * 
  • trunk/src/main/php/net/stubbles/util/Binford.php

    r473 r731  
    8282 
    8383    /** 
     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    /** 
    8494     * returns true if the filter has a default value in case the value to filter is not set 
    8595     * 
  • trunk/src/main/php/net/stubbles/util/validators/stubMaxLengthValidator.php

    r151 r731  
    2222     */ 
    2323    protected $maxLength; 
    24      
     24 
    2525    /** 
    2626     * constructor 
     
    3232        $this->maxLength = $maxLength; 
    3333    } 
    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 
    3545    /** 
    3646     * validate that the given value is not longer than the maximum length 
     
    4757        return true; 
    4858    } 
    49      
     59 
    5060    /** 
    5161     * returns a list of criteria for the validator 
  • trunk/src/main/php/net/stubbles/util/validators/stubMaxNumberValidator.php

    r678 r731  
    3434 
    3535    /** 
     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    /** 
    3646     * validate that the given value is smaller than or equal to the maximum value 
    3747     * 
  • trunk/src/main/php/net/stubbles/util/validators/stubMinLengthValidator.php

    r678 r731  
    1919     * the minimum length to use for validation 
    2020     * 
    21      * @var  string 
     21     * @var  int 
    2222     */ 
    2323    protected $minLength; 
     
    3131    { 
    3232        $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; 
    3343    } 
    3444 
  • trunk/src/main/php/net/stubbles/util/validators/stubMinNumberValidator.php

    r678 r731  
    1919     * the minimum value to use for validation 
    2020     * 
    21      * @var  string 
     21     * @var  double 
    2222     */ 
    2323    protected $minValue; 
     
    3131    { 
    3232        $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; 
    3343    } 
    3444 
  • trunk/src/main/php/net/stubbles/util/validators/stubRegexValidator.php

    r678 r731  
    4343 
    4444    /** 
     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    /** 
    4555     * validate that the given value complies with the regular expression 
    4656     * 
  • trunk/src/test/php/net/stubbles/ipo/IPOTestSuite.php

    r719 r731  
    2828        $this->addTestFile($dir . '/request/stubRequestValueErrorTestCase.php'); 
    2929         
     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         
    3040        $this->addTestFile($dir . '/request/filters/stubFloatFilterTestCase.php'); 
    3141        $this->addTestFile($dir . '/request/filters/stubHTTPURLFilterTestCase.php');