function setTypes($paramtypes) {
        foreach ($paramtypes as $elementname => $paramtype) {
            $this->setType($elementname, $paramtype);
        }
    }
function setTypes($paramtypes) {
        foreach ($paramtypes as $elementname => $paramtype) {
            $this->setType($elementname, $paramtype);
        }
    }
function setTypes ( $ paramtypes ) { foreach ( $ paramtypes as $ elementname => $ paramtype ) { $ this -> setType ( $ elementname , $ paramtype ) ; } }
This can be used to set several types at once.

@param array $paramtypes types of parameters.
@see MoodleQuickForm::setType
This can be used to set several types at once .