Added wrapper functions for PHP XTemplate