src/Admin/MultisitesModelAdminExtension.php
public function setActiveSite($siteID) {
		if($this->owner->config()->use_active_site_session) {
			Multisites::inst()->setActiveSite($siteID);
		} else {
			$this->owner->getRequest()->getSession()->set($this->getActiveSiteSessionKey(), $siteID);
		}
	}
public function setActiveSite($siteID) {
		if($this->owner->config()->use_active_site_session) {
			Multisites::inst()->setActiveSite($siteID);
		} else {
			$this->owner->getRequest()->getSession()->set($this->getActiveSiteSessionKey(), $siteID);
		}
	}
public function setActiveSite ( $ siteID ) { if ( $ this -> owner -> config ( ) -> use_active_site_session ) { Multisites :: inst ( ) -> setActiveSite ( $ siteID ) ; } else { $ this -> owner -> getRequest ( ) -> getSession ( ) -> set ( $ this -> getActiveSiteSessionKey ( ) , $ siteID ) ; } }
Set the active site for this model admin

@param int $siteID
@return void
Set the active site for this model admin