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; }
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; }
/** * 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(); }
/** * 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(); }
/** * 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(); }