blackcell Posted March 1, 2008 Share Posted March 1, 2008 I am wanting to get an idea of using classes and I need very simple ideas on some scenarios that would require classes. If a php coder could post some ideas it would be great. Quote Link to comment https://forums.phpfreaks.com/topic/93878-solved-need-ideas/ Share on other sites More sharing options...
keeB Posted March 1, 2008 Share Posted March 1, 2008 Uhmmmmmmmmmmmmmmmm... anything? Easiest example would be the encapsulation of a User. Quote Link to comment https://forums.phpfreaks.com/topic/93878-solved-need-ideas/#findComment-481022 Share on other sites More sharing options...
p2grace Posted March 2, 2008 Share Posted March 2, 2008 Another idea is to keep the code clean. An example of class usage could be as simple as the scenario below. You'd use an email class for all of the email generating. Another call for all form validation. Another class for database transactions. etc. Quote Link to comment https://forums.phpfreaks.com/topic/93878-solved-need-ideas/#findComment-481446 Share on other sites More sharing options...
blackcell Posted March 3, 2008 Author Share Posted March 3, 2008 encapsulation of a user? I have noticed that these examples usually have pre-defined classes from someone else openly offering them. Maybe even simpler like making something do something unproductive. a little more difficult than the example dog barking examples you find or the echo hello world examples though Quote Link to comment https://forums.phpfreaks.com/topic/93878-solved-need-ideas/#findComment-482064 Share on other sites More sharing options...
trq Posted March 3, 2008 Share Posted March 3, 2008 Have you checked out the oop5 section of the manual? Quote Link to comment https://forums.phpfreaks.com/topic/93878-solved-need-ideas/#findComment-482073 Share on other sites More sharing options...
teng84 Posted March 3, 2008 Share Posted March 3, 2008 suggestion can you remove that large image on your sig... that really destruct your reader Quote Link to comment https://forums.phpfreaks.com/topic/93878-solved-need-ideas/#findComment-482089 Share on other sites More sharing options...
able Posted March 3, 2008 Share Posted March 3, 2008 Try an address book application. 1 person can have multiple sets of contact details. Quote Link to comment https://forums.phpfreaks.com/topic/93878-solved-need-ideas/#findComment-482090 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.