protected function prepareRequestMediaVersionFromUrlPath () {
		$requestPath = $this->request->GetPath(TRUE);
		$requestPathExploded = explode('/', trim($requestPath, '/'));
		$requestPathFirstPart = mb_strtolower($requestPathExploded[0]);
		foreach ($this->allowedMediaVersionsAndUrlValues as $mediaSiteVersion => $mediaSiteUrlValue) {
			$mediaSiteUrlPrefix = mb_strtolower($mediaSiteUrlValue);
			if ($requestPathFirstPart === $mediaSiteUrlPrefix) {
				//$this->prepareSetUpRequestMediaSiteVersionIfValid($mediaSiteVersion);
				$this->requestMediaSiteVersion = $mediaSiteVersion;
				if (mb_strlen($mediaSiteUrlPrefix) > 0) 
					$this->request->SetPath(
						mb_substr($requestPath, mb_strlen('/' . $mediaSiteUrlPrefix))	
					);
				break;
			}
		}
	}
protected function prepareRequestMediaVersionFromUrlPath () {
		$requestPath = $this->request->GetPath(TRUE);
		$requestPathExploded = explode('/', trim($requestPath, '/'));
		$requestPathFirstPart = mb_strtolower($requestPathExploded[0]);
		foreach ($this->allowedMediaVersionsAndUrlValues as $mediaSiteVersion => $mediaSiteUrlValue) {
			$mediaSiteUrlPrefix = mb_strtolower($mediaSiteUrlValue);
			if ($requestPathFirstPart === $mediaSiteUrlPrefix) {
				//$this->prepareSetUpRequestMediaSiteVersionIfValid($mediaSiteVersion);
				$this->requestMediaSiteVersion = $mediaSiteVersion;
				if (mb_strlen($mediaSiteUrlPrefix) > 0) 
					$this->request->SetPath(
						mb_substr($requestPath, mb_strlen('/' . $mediaSiteUrlPrefix))	
					);
				break;
			}
		}
	}
protected function prepareRequestMediaVersionFromUrlPath ( ) { $ requestPath = $ this -> request -> GetPath ( TRUE ) ; $ requestPathExploded = explode ( '/' , trim ( $ requestPath , '/' ) ) ; $ requestPathFirstPart = mb_strtolower ( $ requestPathExploded [ 0 ] ) ; foreach ( $ this -> allowedMediaVersionsAndUrlValues as $ mediaSiteVersion => $ mediaSiteUrlValue ) { $ mediaSiteUrlPrefix = mb_strtolower ( $ mediaSiteUrlValue ) ; if ( $ requestPathFirstPart === $ mediaSiteUrlPrefix ) { //$this->prepareSetUpRequestMediaSiteVersionIfValid($mediaSiteVersion); $ this -> requestMediaSiteVersion = $ mediaSiteVersion ; if ( mb_strlen ( $ mediaSiteUrlPrefix ) > 0 ) $ this -> request -> SetPath ( mb_substr ( $ requestPath , mb_strlen ( '/' . $ mediaSiteUrlPrefix ) ) ) ; break ; } } }
Try to set up media site version from request path as request media site
version. If there is any request path detected, remove media site version
from request path and store detected media site version in local context.
@return void
Try to set up media site version from request path as request media site version . If there is any request path detected remove media site version from request path and store detected media site version in local context .