PHP 클래스 RainLab\Translate\Behaviors\TranslatableModel

Usage: In the model class definition: public $implement = ['@RainLab.Translate.Behaviors.TranslatableModel']; public $translatable = ['name', 'content'];
상속: extends RainLab\Translate\Classes\TranslatableBehavior
파일 보기 프로젝트 열기: rainlab/translate-plugin

공개 메소드들

메소드 설명
scopeTransWhere ( Builder $query, string $index, string $value, string $locale = null ) : Builder Applies a translatable index to a basic query. This scope will join the index table and cannot be executed more than once.

보호된 메소드들

메소드 설명
loadTranslatableData ( string $locale = null ) : array Loads the translation data from the join table.
storeTranslatableBasicData ( string $locale = null ) : void Saves the basic translation data in the join table.
storeTranslatableData ( string $locale = null ) : void Saves the translation data in the join table.
storeTranslatableIndexData ( string $locale = null ) : void Saves the indexed translation data in the join table.

메소드 상세

loadTranslatableData() 보호된 메소드

Loads the translation data from the join table.
protected loadTranslatableData ( string $locale = null ) : array
$locale string
리턴 array

scopeTransWhere() 공개 메소드

Applies a translatable index to a basic query. This scope will join the index table and cannot be executed more than once.
public scopeTransWhere ( Builder $query, string $index, string $value, string $locale = null ) : Builder
$query Builder
$index string
$value string
$locale string
리턴 Builder

storeTranslatableBasicData() 보호된 메소드

Saves the basic translation data in the join table.
protected storeTranslatableBasicData ( string $locale = null ) : void
$locale string
리턴 void

storeTranslatableData() 보호된 메소드

Saves the translation data in the join table.
protected storeTranslatableData ( string $locale = null ) : void
$locale string
리턴 void

storeTranslatableIndexData() 보호된 메소드

Saves the indexed translation data in the join table.
protected storeTranslatableIndexData ( string $locale = null ) : void
$locale string
리턴 void