Forgot to commit this file

Forgot the -a option to commit this file as well.
This file has been changed into PHP5.3 format using namespaces. Also
added a few functions.