2013-10-03 16:20:32 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Initialises the versioned stage when a request is made.
|
|
|
|
*
|
|
|
|
* @package framework
|
|
|
|
* @subpackage control
|
|
|
|
*/
|
2014-03-04 05:43:17 +01:00
|
|
|
class VersionedRequestFilter implements RequestFilter {
|
2013-10-03 16:20:32 +02:00
|
|
|
|
2014-03-04 05:43:17 +01:00
|
|
|
public function preRequest(SS_HTTPRequest $request, Session $session, DataModel $model) {
|
|
|
|
Versioned::choose_site_stage($session);
|
|
|
|
return true;
|
2013-10-03 16:20:32 +02:00
|
|
|
}
|
|
|
|
|
2014-03-04 05:43:17 +01:00
|
|
|
public function postRequest(SS_HTTPRequest $request, SS_HTTPResponse $response, DataModel $model) {
|
|
|
|
return true;
|
2013-10-03 16:20:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|