Object-Oriented PHP register