The former NSW MP, Daryl Maguire, has told a corruption inquiry he accepted thousands of dollars in cash at his parliamentary office.