PHP class to communicate between script parts