PHP 인터페이스 Sulu\Component\Webspace\Url\ReplacerInterface

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

공개 메소드들

메소드 설명
appendLocalizationReplacer ( $url ) : string Appends localization replacer to url.
cleanup ( string $url, array $replacers = null ) : string Removes all replacers.
hasCountryReplacer ( string $url ) : boolean Returns true if country replacer exists.
hasHostReplacer ( string $url ) : boolean Returns true if host replacer exists.
hasLanguageReplacer ( string $url ) : boolean Returns true if language replacer exists.
hasLocalizationReplacer ( string $url ) : boolean Returns true if localization replacer exists.
hasSegmentReplacer ( string $url ) : boolean Returns true if segment replacer exists.
replace ( string $url, string $replacer, string $value ) : string Replace replacer with given value.
replaceCountry ( string $url, string $country ) : string Replace country with given value.
replaceHost ( string $url, string $host ) : string Replace host with given value.
replaceLanguage ( string $url, string $language ) : string Replace language with given value.
replaceLocalization ( string $url, string $localization ) : string Replace localization with given value.
replaceSegment ( string $url, string $segment ) : string Replace segment with given value.

메소드 상세

appendLocalizationReplacer() 공개 메소드

Appends localization replacer to url.
public appendLocalizationReplacer ( $url ) : string
리턴 string

cleanup() 공개 메소드

Removes all replacers.
public cleanup ( string $url, array $replacers = null ) : string
$url string
$replacers array
리턴 string

hasCountryReplacer() 공개 메소드

Returns true if country replacer exists.
public hasCountryReplacer ( string $url ) : boolean
$url string
리턴 boolean

hasHostReplacer() 공개 메소드

Returns true if host replacer exists.
public hasHostReplacer ( string $url ) : boolean
$url string
리턴 boolean

hasLanguageReplacer() 공개 메소드

Returns true if language replacer exists.
public hasLanguageReplacer ( string $url ) : boolean
$url string
리턴 boolean

hasLocalizationReplacer() 공개 메소드

Returns true if localization replacer exists.
public hasLocalizationReplacer ( string $url ) : boolean
$url string
리턴 boolean

hasSegmentReplacer() 공개 메소드

Returns true if segment replacer exists.
public hasSegmentReplacer ( string $url ) : boolean
$url string
리턴 boolean

replace() 공개 메소드

Replace replacer with given value.
public replace ( string $url, string $replacer, string $value ) : string
$url string
$replacer string
$value string
리턴 string

replaceCountry() 공개 메소드

Replace country with given value.
public replaceCountry ( string $url, string $country ) : string
$url string
$country string
리턴 string

replaceHost() 공개 메소드

Replace host with given value.
public replaceHost ( string $url, string $host ) : string
$url string
$host string
리턴 string

replaceLanguage() 공개 메소드

Replace language with given value.
public replaceLanguage ( string $url, string $language ) : string
$url string
$language string
리턴 string

replaceLocalization() 공개 메소드

Replace localization with given value.
public replaceLocalization ( string $url, string $localization ) : string
$url string
$localization string
리턴 string

replaceSegment() 공개 메소드

Replace segment with given value.
public replaceSegment ( string $url, string $segment ) : string
$url string
$segment string
리턴 string