SilverStripe\Versioned\Versioned::choose_site_stage
Choose the stage the site is currently on.
If $_GET['stage'] is set, then it will use that stage, and store it in the session. if $_GET['archiveDate'] is set, it will use that date, and store it in the session. If neither of these are set, it checks the session, otherwise the stage is set to 'Live'.
Signature
public function choose_site_stage(HTTPRequest
$request )
Parameters
$request
— SilverStripe\Control\HTTPRequest