PHP Classes

Static vs singleton

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in

      Detect Opcode Cache  >  All threads  >  Static vs singleton  >  (Un) Subscribe thread alerts  
Subject:Static vs singleton
Summary:Call static methods as dynamic
Author:Artur Muszynski
Date:2010-01-19 13:02:06
Update:2010-01-25 14:25:06

  1. Static vs singleton   Reply   Report abuse  
Picture of Artur Muszynski Artur Muszynski - 2010-01-19 13:02:06
I see calling static methods as dynamic not elegant. You could get rid of singleton pattern and use only static properties and calls.

  2. Re: Static vs singleton   Reply   Report abuse  
Picture of Alexander Over Alexander Over - 2010-01-25 14:25:06 - In reply to message 1 from Artur Muszynski
Thanx for your feedback,

i have done some refactoring of the internal calls