Jump to content

Recommended Posts

Hello all,

 

So I have created an internal messaging system for our users, and while it works, I wanted to grow my OOP knowledge.  So I have 2 objects, message, and messageControl.

 

What I wanted to know was what should do what?  For example, should the message be able to send itself, or is that the job for messageControl?  Also, in the message class I have a method that displays itself, is that ok or should that be handled somewhere else (I can see this looking like MVC). 

 

On the site I have other objects where I run into the same problem of what should handle what.  On the site an admin can approve or deny a users request.  I have an object request and requestControl.  What object should handle the approve/Deny process?

 

While not new to PHP, my OOP design knowledge is lacking.

 

Thanks for your help,

 

Marc

 

Link to comment
https://forums.phpfreaks.com/topic/211516-help-with-designing-objects/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.