original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Set this organization as the one currently active
  
  @return \Gems_User_Organization (continuation pattern)
docstring_tokens: Set this organization as the one currently active