public function get_element($elementname) {
        if ($this->_form->elementExists($elementname)) {
            return $this->_form->getElement($elementname);
        } else {
            return false;
        }
    }
public function get_element($elementname) {
        if ($this->_form->elementExists($elementname)) {
            return $this->_form->getElement($elementname);
        } else {
            return false;
        }
    }
public function get_element ( $ elementname ) { if ( $ this -> _form -> elementExists ( $ elementname ) ) { return $ this -> _form -> getElement ( $ elementname ) ; } else { return false ; } }
Gets an element from the form if it exists

@param string $elementname
@return HTML_QuickForm_input|MoodleQuickForm_group
Gets an element from the form if it exists