This is a fields and metabox class for php