Пример #1
0
	static public function getInstance($integration = null)
	{
		if (self::$instance === false)
		{
			JPluginHelper::importPlugin('kunena');
			$dispatcher = JDispatcher::getInstance();
			$classes = $dispatcher->trigger('onKunenaGetProfile');

			foreach ($classes as $class)
			{
				if (!is_object($class))
				{
					continue;
				}

				self::$instance = $class;
				break;
			}

			if (!self::$instance)
			{
				self::$instance = new KunenaProfile();
			}
		}

		return self::$instance;
	}
Пример #2
0
	static public function getInstance($integration = null) {
		if (self::$instance === false) {
			$config = KunenaFactory::getConfig ();
			if (! $integration)
				$integration = $config->integration_profile;
			self::$instance = KunenaIntegration::initialize ( 'profile', $integration );
		}
		return self::$instance;
	}
Пример #3
0
	/**
	 * Get Kunena profile integration object
	 *
	 * Returns the global {@link KunenaProfile} object, only creating it if it doesn't already exist.
	 *
	 * @return KunenaProfile
	 */
	public static function getProfile() {
		return KunenaProfile::getInstance();
	}
Пример #4
0
	/**
	 * Get Kunena profile integration object
	 *
	 * Returns the global {@link KunenaProfile} object, only creating it if it doesn't already exist.
	 *
	 * @return object KunenaProfile
	 */
	public static function getProfile()
	{
		require_once KPATH_ADMIN . '/libraries/integration/profile.php';
		return KunenaProfile::getInstance();
	}
Пример #5
0
 /**
  * Get Kunena profile integration object
  *
  * Returns the global {@link KunenaProfile} object, only creating it if it doesn't already exist.
  *
  * @return object KunenaProfile
  */
 public static function getProfile()
 {
     kimport('integration.profile');
     return KunenaProfile::getInstance();
 }