Beispiel #1
0
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return OW_EventManager
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
Beispiel #2
0
 /**
  * @return OW_Authorization
  */
 public static function getAuthorization()
 {
     return OW_Authorization::getInstance();
 }