$this->validfields['mystrfield'] = array(TYPE_STR, REQ_NO); $this->validfields['myuintfield'] = array(TYPE_UINT, REQ_NO);