Property | Type | Description | |
---|---|---|---|
$model | Reference to the extended model. | ||
$translatableContext | Active language for translations. | ||
$translatableDefault | Default system language. | ||
$translatableDefaultUrl | Default page URL. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
getModelUrl ( ) | ||
setModelUrl ( $value ) |
public __construct ( October\Rain\Database\Model $model ) | ||
$model | October\Rain\Database\Model | The extended model. |
public getSettingsUrlAttributeTranslated ( $locale ) : string | ||
return | string |
public getViewBagUrlAttributeTranslated ( $locale ) : string | ||
return | string |
public hasTranslatablePageUrl ( $locale = null ) : boolean | ||
return | boolean |
public initTranslatableContext ( ) : void | ||
return | void |
public rewriteTranslatablePageUrl ( $locale = null ) : void | ||
return | void |
public setSettingsUrlAttributeTranslated ( $value, $locale ) : void | ||
return | void |
public setViewBagUrlAttributeTranslated ( $value, $locale ) : void | ||
return | void |
protected $translatableContext |