Changing global for abstraction php