Sure, just set the class as a session and it will appear on all pages.
So, if my class was '$photo_class' then I would set a session called 'session_register("photo_class")'.
Now when I set a variable in the class, i.e. $photo_class->photo_id, I can show this anywhere on my site.