real time use of design pattern ?

Discussion in 'PHP' started by vetrivel, Oct 21, 2009.

  1. #1
    Hi,
    I am working in php and i started studing design pattern .now i need the real time use of it .
    please give me an example for each design pattern with your valuable comment .
     
    vetrivel, Oct 21, 2009 IP
  2. VladimirS

    VladimirS Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    For example, singleton, is used for creating things such as DB connections or file handlers. Suitable in situations when you need only one instance of a resource.
     
    VladimirS, Oct 23, 2009 IP
  3. vetrivel

    vetrivel Peon

    Messages:
    147
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Any example site with real time example.
     
    vetrivel, Oct 23, 2009 IP
  4. VladimirS

    VladimirS Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Joomla! CMS (joomla.org) file libraries\joomla\database\table.php
    class JTable
     
    VladimirS, Oct 23, 2009 IP