PHP 클래스 RainLab\Translate\Behaviors\TranslatablePageUrl

Usage: In the model class definition: public $implement = ['@RainLab.Translate.Behaviors.TranslatablePageUrl'];
상속: extends October\Rain\Extension\ExtensionBase
파일 보기 프로젝트 열기: rainlab/translate-plugin

보호된 프로퍼티들

프로퍼티 타입 설명
$model Reference to the extended model.
$translatableContext Active language for translations.
$translatableDefault Default system language.
$translatableDefaultUrl Default page URL.

공개 메소드들

메소드 설명
__construct ( October\Rain\Database\Model $model ) Constructor
getSettingsUrlAttributeTranslated ( $locale ) : string Mutator detected by MLControl
getViewBagUrlAttributeTranslated ( $locale ) : string Mutator detected by MLControl, proxy for Static Pages plugin.
hasTranslatablePageUrl ( $locale = null ) : boolean Determines if a locale has a translated URL.
initTranslatableContext ( ) : void Initializes this class, sets the default language code to use.
rewriteTranslatablePageUrl ( $locale = null ) : void Checks if a translated URL exists and rewrites it, this method should only be called from the context of front-end.
setSettingsUrlAttributeTranslated ( $value, $locale ) : void Mutator detected by MLControl
setViewBagUrlAttributeTranslated ( $value, $locale ) : void Mutator detected by MLControl, proxy for Static Pages plugin.

보호된 메소드들

메소드 설명
getModelUrl ( )
setModelUrl ( $value )

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( October\Rain\Database\Model $model )
$model October\Rain\Database\Model The extended model.

getModelUrl() 보호된 메소드

protected getModelUrl ( )

getSettingsUrlAttributeTranslated() 공개 메소드

Mutator detected by MLControl
public getSettingsUrlAttributeTranslated ( $locale ) : string
리턴 string

getViewBagUrlAttributeTranslated() 공개 메소드

Mutator detected by MLControl, proxy for Static Pages plugin.
public getViewBagUrlAttributeTranslated ( $locale ) : string
리턴 string

hasTranslatablePageUrl() 공개 메소드

Determines if a locale has a translated URL.
public hasTranslatablePageUrl ( $locale = null ) : boolean
리턴 boolean

initTranslatableContext() 공개 메소드

Initializes this class, sets the default language code to use.
public initTranslatableContext ( ) : void
리턴 void

rewriteTranslatablePageUrl() 공개 메소드

Checks if a translated URL exists and rewrites it, this method should only be called from the context of front-end.
public rewriteTranslatablePageUrl ( $locale = null ) : void
리턴 void

setModelUrl() 보호된 메소드

protected setModelUrl ( $value )

setSettingsUrlAttributeTranslated() 공개 메소드

Mutator detected by MLControl
public setSettingsUrlAttributeTranslated ( $value, $locale ) : void
리턴 void

setViewBagUrlAttributeTranslated() 공개 메소드

Mutator detected by MLControl, proxy for Static Pages plugin.
public setViewBagUrlAttributeTranslated ( $value, $locale ) : void
리턴 void

프로퍼티 상세

$model 보호되어 있는 프로퍼티

Reference to the extended model.
protected $model

$translatableContext 보호되어 있는 프로퍼티

Active language for translations.
protected $translatableContext

$translatableDefault 보호되어 있는 프로퍼티

Default system language.
protected $translatableDefault

$translatableDefaultUrl 보호되어 있는 프로퍼티

Default page URL.
protected $translatableDefaultUrl