Esempio n. 1
0
 /**
  *  For Singleton pattern.
  *  
  *  @return object the instance of this class
  */
 public static function getInstance()
 {
     if (is_null(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }