예제 #1
0
 /** Returns the instance of the class.
  *This function returns the auto-reference to the singleton instance of the class. It should not be called by other classes.
  * 
  * \return The auto-reference to the singleton.
  */
 public static function getInstance()
 {
     if (!self::$_instance instanceof self) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }