I am attempting to create a session class. I want it to be able to store all kinds of data about the current session, such as member information, authentication, application data, or any other structures that would be unique to any given user.
If I were to create a new class called Session. Is there a simple way of maintaining all of the child classes that are required for that particular Session instance? I am making this class very flexible, so there could be any number of child classes. The Session class will be a data container for the most part, but will handle several operations that make the storing and getting of information across pages easier. It will need to accomodate any classes that request its use.
I understand the concept of Object Oriented Programming very well, but I do not know the PHP syntax very well. I know the basic syntax, but I do not know any shortcuts in scripting, such as the numerous shortcuts in PERL, or whether shortcuts even exist. I know how I want the object to work, but I am not sure how deeply object oriented PHP is, and how it differs from other languages' implementation of OOP.
If anyone could just give me a little insight on how to set up classes as "properties" of another class, I would really appreciate it, or if you know of any good references.