public function setExpectedRights($expectedRights)
    {
        
        if (!empty($expectedRights) && preg_match('/^r*w*x*$/', $expectedRights) !== 0) {
            $this->expectedRights = $expectedRights;    
        }
        else{
            throw new common_configuration_MalformedRightsException("Malformed rights. Expected format is r|rw|rwx.");
        }
        
    }
public function setExpectedRights($expectedRights)
    {
        
        if (!empty($expectedRights) && preg_match('/^r*w*x*$/', $expectedRights) !== 0) {
            $this->expectedRights = $expectedRights;    
        }
        else{
            throw new common_configuration_MalformedRightsException("Malformed rights. Expected format is r|rw|rwx.");
        }
        
    }
public function setExpectedRights ( $ expectedRights ) { if ( ! empty ( $ expectedRights ) && preg_match ( '/^r*w*x*$/' , $ expectedRights ) !== 0 ) { $ this -> expectedRights = $ expectedRights ; } else { throw new common_configuration_MalformedRightsException ( "Malformed rights. Expected format is r|rw|rwx." ) ; } }
Short description of method setExpectedRights

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@param  string expectedRights
@return void
Short description of method setExpectedRights