Пример #1
0
 public static function getInstance()
 {
     if (!self::$instance) {
         self::$instance = new static();
     }
     return self::$instance;
 }
Пример #2
0
	/**
	 * Get Kunena activity integration object
	 *
	 * Returns the global {@link KunenaIntegrationActivity} object, only creating it if it doesn't already exist.
	 *
	 * @return KunenaIntegrationActivity
	 */
	public static function getActivityIntegration() {
		return KunenaIntegrationActivity::getInstance();
	}