public function getField($fieldname) {
        $i = $this->findFieldInArray($fieldname);
        if ($i !== null) {
            return $this->fields[$i];
        }
        return null;
    }
public function getField($fieldname) {
        $i = $this->findFieldInArray($fieldname);
        if ($i !== null) {
            return $this->fields[$i];
        }
        return null;
    }
public function getField ( $ fieldname ) { $ i = $ this -> findFieldInArray ( $ fieldname ) ; if ( $ i !== null ) { return $ this -> fields [ $ i ] ; } return null ; }
Returns one xmldb_field
@param string $fieldname
@return xmldb_field|null
Returns one xmldb_field