A PHP-based template class with mutliple inheritance