Пример #1
0
 public static function instance()
 {
     if (!isset(self::$instance)) {
         $className = __CLASS__;
         self::$instance = new $className();
     }
     return self::$instance;
 }
Пример #2
0
function cyberchimps_instantiate_class()
{
    CyberChimpsParallax::instance();
}