PHP 인터페이스 Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface

파일 보기 프로젝트 열기: sulu/sulu 0 사용 예제들

공개 메소드들

메소드 설명
analyze ( Request $request ) Analyzes the current request, and saves the values for portal, language, country and segment for further usage.
getAnalyticsKey ( ) : string Returns the analytics key.
getAttribute ( string $name, mixed | null $default = null ) : mixed Returns request attribute with given name.
getCurrentLocalization ( ) : Localization Returns the current localization for this Request.
getGetParameters ( ) : array Returns the get parameters.
getMatchType ( ) : integer Returns the current match type for this request.
getPortal ( ) : Portal Returns the current portal for this request.
getPortalInformation ( ) : PortalInformation Returns portal-information of request.
getPortalUrl ( ) : string Returns the url of the current portal.
getPostParameters ( ) : array Returns the post parameters.
getRedirect ( ) : string Returns the redirect url.
getResourceLocator ( ) : string Returns the path of the current request, which is the url without host, language and so on.
getResourceLocatorPrefix ( ) : string Returns the prefix required before the resource locator.
getSegment ( ) : Segment Returns the current segment for this request.
getWebspace ( ) : Webspace Returns the current webspace for this request.
validate ( Request $request ) Validates the data written on the given request and throws exceptions in case something is wrong or missing.

메소드 상세

analyze() 공개 메소드

Analyzes the current request, and saves the values for portal, language, country and segment for further usage.
public analyze ( Request $request )
$request Symfony\Component\HttpFoundation\Request The request to analyze

getAnalyticsKey() 공개 메소드

Returns the analytics key.
public getAnalyticsKey ( ) : string
리턴 string

getAttribute() 공개 메소드

Returns request attribute with given name.
public getAttribute ( string $name, mixed | null $default = null ) : mixed
$name string
$default mixed | null
리턴 mixed

getCurrentLocalization() 공개 메소드

Returns the current localization for this Request.
public getCurrentLocalization ( ) : Localization
리턴 Sulu\Component\Localization\Localization

getGetParameters() 공개 메소드

Returns the get parameters.
public getGetParameters ( ) : array
리턴 array

getMatchType() 공개 메소드

Returns the current match type for this request.
public getMatchType ( ) : integer
리턴 integer

getPortal() 공개 메소드

Returns the current portal for this request.
public getPortal ( ) : Portal
리턴 Sulu\Component\Webspace\Portal

getPortalInformation() 공개 메소드

Returns portal-information of request.
public getPortalInformation ( ) : PortalInformation
리턴 Sulu\Component\Webspace\PortalInformation

getPortalUrl() 공개 메소드

Returns the url of the current portal.
public getPortalUrl ( ) : string
리턴 string

getPostParameters() 공개 메소드

Returns the post parameters.
public getPostParameters ( ) : array
리턴 array

getRedirect() 공개 메소드

Returns the redirect url.
public getRedirect ( ) : string
리턴 string

getResourceLocator() 공개 메소드

Returns the path of the current request, which is the url without host, language and so on.
public getResourceLocator ( ) : string
리턴 string

getResourceLocatorPrefix() 공개 메소드

Returns the prefix required before the resource locator.
public getResourceLocatorPrefix ( ) : string
리턴 string

getSegment() 공개 메소드

Returns the current segment for this request.
public getSegment ( ) : Segment
리턴 Sulu\Component\Webspace\Segment

getWebspace() 공개 메소드

Returns the current webspace for this request.
public getWebspace ( ) : Webspace
리턴 Sulu\Component\Webspace\Webspace

validate() 공개 메소드

Validates the data written on the given request and throws exceptions in case something is wrong or missing.
public validate ( Request $request )
$request Symfony\Component\HttpFoundation\Request