Removed all inline functions to support older versions of PHP.
Ticket #ED-3