An OOP php html generator using DOMDocument