Object oriented html generator in php