public function setAsCurrentOrganization()
    {
        $organizationId = $this->getId();

        if ($organizationId && (! \Gems_Cookies::setOrganization($organizationId, $this->basepath->getBasePath()))) {
            throw new \Exception('Cookies must be enabled for this site.');
        }

        $escort = \GemsEscort::getInstance();
        if ($escort instanceof \Gems_Project_Layout_MultiLayoutInterface) {
            $escort->layoutSwitch($this->getStyle());
        }

        return $this;
    }
public function setAsCurrentOrganization()
    {
        $organizationId = $this->getId();

        if ($organizationId && (! \Gems_Cookies::setOrganization($organizationId, $this->basepath->getBasePath()))) {
            throw new \Exception('Cookies must be enabled for this site.');
        }

        $escort = \GemsEscort::getInstance();
        if ($escort instanceof \Gems_Project_Layout_MultiLayoutInterface) {
            $escort->layoutSwitch($this->getStyle());
        }

        return $this;
    }
public function setAsCurrentOrganization ( ) { $ organizationId = $ this -> getId ( ) ; if ( $ organizationId && ( ! \ Gems_Cookies :: setOrganization ( $ organizationId , $ this -> basepath -> getBasePath ( ) ) ) ) { throw new \ Exception ( 'Cookies must be enabled for this site.' ) ; } $ escort = \ GemsEscort :: getInstance ( ) ; if ( $ escort instanceof \ Gems_Project_Layout_MultiLayoutInterface ) { $ escort -> layoutSwitch ( $ this -> getStyle ( ) ) ; } return $ this ; }
Set this organization as the one currently active

@return \Gems_User_Organization (continuation pattern)
Set this organization as the one currently active