Пример #1
0
 public static function getInstance()
 {
     if (!self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Пример #2
0
 /**
  * Constructor magic method.
  * Private because this class should not be called on its own.
  */
 public function __construct()
 {
     parent::__construct();
 }
Пример #3
0
 /**
  * Constructor magic method.
  */
 public function __construct()
 {
     parent::__construct();
     $this->load();
 }