Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

Design Patterns

posted by anonymous 8 years ago

Hi! I've a question about Flourish, what design patterns are applied in the code? I found a singleton in the database connection, but there's more applied?

Thanks in advanced!

While it may seem like Flourish uses the singleton pattern for the ORM database connection, it actual uses the multiton pattern. This pattern is used in a few place throughout Flourish, such as fORMDatabase, fORMSchema and fTemplating.

Flourish does use quite a number of design patterns. Here is a list of quite a number of them, however I'm sure there are less-common patterns I use that I don't even know the name for.

posted by wbond 8 years ago

Excellent Will! Flourish seems to be perfect for my college project :)

Thanks you, best regards!

posted by anonymous 8 years ago