Beispiel #1
0
 public function getProviders()
 {
     $config = JComponentHelper::getParams('com_slogin');
     $action = JFactory::getUser()->id == 0 ? '' : '&action=fusion';
     $plugins = array();
     if ($config->get('service_auth', 0)) {
         $plugins = SloginProvidersHelper::loadProviderLinks($action);
     } else {
         $dispatcher = JDispatcher::getInstance();
         JPluginHelper::importPlugin('slogin_auth');
         $dispatcher->trigger('onCreateSloginLink', array(&$plugins, $action));
     }
     return $plugins;
 }
Beispiel #2
0
 static function loadLinks(&$plugins, $add, $params)
 {
     $plugins = SloginProvidersHelper::loadProviderLinks($add);
 }