public function __construct($sPortalId) { $this->sPortalid = $sPortalId; $this->aData = PortalDispatcherData::GetData($sPortalId); }
public static function GetAllowedPortals() { $aAllowedPortals = array(); $aPortalsConf = PortalDispatcherData::GetData(); $aDispatchers = array(); foreach ($aPortalsConf as $sPortalId => $aConf) { $sHandlerClass = $aConf['handler']; $aDispatchers[$sPortalId] = new $sHandlerClass($sPortalId); } foreach ($aDispatchers as $sPortalId => $oDispatcher) { if ($oDispatcher->IsUserAllowed()) { $aAllowedPortals[] = array('id' => $sPortalId, 'label' => $oDispatcher->GetLabel(), 'url' => $oDispatcher->GetUrl()); } } return $aAllowedPortals; }