Show
Ignore:
Timestamp:
05/22/08 15:03:52 (6 months ago)
Author:
mikey
Message:

added net::stubbles::ipo::request::broker::annotations::stubPreselectFilterAnnotation

Files:

Legend:

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

    r1547 r1574  
    3434 
    3535    /** 
     36     * returns list of allowed values 
     37     * 
     38     * @return  array 
     39     */ 
     40    public function getAllowedValues() 
     41    { 
     42        return $this->allowedValues; 
     43    } 
     44 
     45    /** 
    3646     * validate that the given value is within a list of allowed values 
    3747     * 
     
    4454            return in_array($value, $this->allowedValues); 
    4555        } 
     56         
    4657        foreach ($value as $val) { 
    4758            if (!in_array($val, $this->allowedValues)) { 
     
    4960            } 
    5061        } 
     62         
    5163        return true; 
    5264    }