source/Core/Utils.php
public function loadAdminProfile($aInterfaceProfiles)
    {
        // improved #533
        // checking for available profiles list
        if (is_array($aInterfaceProfiles)) {
            //checking for previous profiles
            $sPrevProfile = \OxidEsales\Eshop\Core\Registry::getUtilsServer()->getOxCookie('oxidadminprofile');
            if (isset($sPrevProfile)) {
                $aPrevProfile = @explode("@", trim($sPrevProfile));
            }

            //array to store profiles
            $aProfiles = [];
            foreach ($aInterfaceProfiles as $iPos => $sProfile) {
                $aProfileSettings = [$iPos, $sProfile];
                $aProfiles[] = $aProfileSettings;
            }
            // setting previous used profile as active
            if (isset($aPrevProfile[0]) && isset($aProfiles[$aPrevProfile[0]])) {
                $aProfiles[$aPrevProfile[0]][2] = 1;
            }

            \OxidEsales\Eshop\Core\Registry::getSession()->setVariable("aAdminProfiles", $aProfiles);

            return $aProfiles;
        }

        return null;
    }
public function loadAdminProfile($aInterfaceProfiles)
    {
        // improved #533
        // checking for available profiles list
        if (is_array($aInterfaceProfiles)) {
            //checking for previous profiles
            $sPrevProfile = \OxidEsales\Eshop\Core\Registry::getUtilsServer()->getOxCookie('oxidadminprofile');
            if (isset($sPrevProfile)) {
                $aPrevProfile = @explode("@", trim($sPrevProfile));
            }

            //array to store profiles
            $aProfiles = [];
            foreach ($aInterfaceProfiles as $iPos => $sProfile) {
                $aProfileSettings = [$iPos, $sProfile];
                $aProfiles[] = $aProfileSettings;
            }
            // setting previous used profile as active
            if (isset($aPrevProfile[0]) && isset($aProfiles[$aPrevProfile[0]])) {
                $aProfiles[$aPrevProfile[0]][2] = 1;
            }

            \OxidEsales\Eshop\Core\Registry::getSession()->setVariable("aAdminProfiles", $aProfiles);

            return $aProfiles;
        }

        return null;
    }
public function loadAdminProfile ( $ aInterfaceProfiles ) { // improved #533 // checking for available profiles list if ( is_array ( $ aInterfaceProfiles ) ) { //checking for previous profiles $ sPrevProfile = \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsServer ( ) -> getOxCookie ( 'oxidadminprofile' ) ; if ( isset ( $ sPrevProfile ) ) { $ aPrevProfile = @ explode ( "@" , trim ( $ sPrevProfile ) ) ; } //array to store profiles $ aProfiles = [ ] ; foreach ( $ aInterfaceProfiles as $ iPos => $ sProfile ) { $ aProfileSettings = [ $ iPos , $ sProfile ] ; $ aProfiles [ ] = $ aProfileSettings ; } // setting previous used profile as active if ( isset ( $ aPrevProfile [ 0 ] ) && isset ( $ aProfiles [ $ aPrevProfile [ 0 ] ] ) ) { $ aProfiles [ $ aPrevProfile [ 0 ] ] [ 2 ] = 1 ; } \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> setVariable ( "aAdminProfiles" , $ aProfiles ) ; return $ aProfiles ; } return null ; }
Parses profile configuration, loads stored info in cookie

@param array $aInterfaceProfiles ($myConfig->getConfigParam( 'aInterfaceProfiles' ))

@return null
Parses profile configuration loads stored info in cookie