how to make my site multi tenant
===

I have build an helpdesk system in php and I have 3 different sites which needs that helpdesk system but I want my helpdesk system to be multi-tenant for the 3 sites.
How this can be done.. I searched a lot, I found wordpress having multi tenant facility, but dont understand how wordpress is doing this.
Guide me in this direction