Welcome to WebmasterWorld Guest from 54.146.230.254

Forum Moderators: buckworks

Message Too Old, No Replies

OOP in web development

     
9:01 am on Sep 5, 2004 (gmt 0)

New User

10+ Year Member

joined:Sept 3, 2004
posts:17
votes: 0


Hi

I know the basics of object oriented programming but i don't know how and where to use OOP in web development - lets say in PHP language.

Can someone describe me a simple class diagram of a web project - its variables, methods and the description of this object itself.

thnx

2:15 pm on Sept 5, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 12, 2002
posts:1482
votes: 0


You might have some better luck in the PHP Forum [webmasterworld.com].
3:21 pm on Sept 5, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 2, 2003
posts:1184
votes: 0


An example... and I'm not sure if php supports objects would be:

A Customer Object that is capable of managing all functions relating to a customer. Here's brief listing of items you'd want to consider for a customer object:

- Save Method
- Update Method
- Delete Method

- ShopperID Property
- CustomerID Property
- FirstName Property
- LastName Property
- Address Property
- City Property
- State Property
- Zip Property

7:24 pm on Sept 5, 2004 (gmt 0)

New User

10+ Year Member

joined:Sept 3, 2004
posts:17
votes: 0


Thank you - i'll go try that other forum too then.
12:22 am on Sept 6, 2004 (gmt 0)

Preferred Member

10+ Year Member

joined:Dec 2, 2003
posts:515
votes: 0


One of the main design patterns in OOP for the web is the MVC pattern. Struts is one I'm familiar with in Java, but a search for "PHP MVC framework" yields a few results.

There are a few patterns that are incredibly useful in more complex web development projects, and I can't for the life of me understand why/how someone would use procedural code for the same tasks. MVC however is the best place to start.

Have fun! :)

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members