PHP Класс lajax\translatemanager\models\Language

Наследование: extends yii\db\ActiveRecord
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
attributeLabels ( )
getDb ( )
getGridStatistic ( ) : integer Returns the completness of a given translation (language).
getIds ( ) : ActiveQuery
getLanguageNames ( boolean $active = false ) : array Returns the list of languages stored in the database in an array.
getLanguageSources ( ) : ActiveQuery
getLanguageTranslate ( ) : ActiveQuery
getLanguages ( boolean $active = true, boolean $asArray = false ) : Language | array Returns language objects.
getStatusName ( ) : string Returns the state of the language (Active, Inactive or Beta) in the current language.
getStatusNames ( ) : array Returns the names of possible states in an associative array.
rules ( )
tableName ( )

Описание методов

attributeLabels() публичный Метод

public attributeLabels ( )

getDb() публичный статический Метод

public static getDb ( )

getGridStatistic() публичный Метод

Returns the completness of a given translation (language).
public getGridStatistic ( ) : integer
Результат integer

getIds() публичный Метод

Устаревший: since version 1.4.5
public getIds ( ) : ActiveQuery
Результат yii\db\ActiveQuery

getLanguageNames() публичный статический Метод

Returns the list of languages stored in the database in an array.
Устаревший: since version 1.5.2
public static getLanguageNames ( boolean $active = false ) : array
$active boolean True/False according to the status of the language.
Результат array

getLanguageSources() публичный Метод

public getLanguageSources ( ) : ActiveQuery
Результат yii\db\ActiveQuery

getLanguageTranslate() публичный Метод

public getLanguageTranslate ( ) : ActiveQuery
Результат yii\db\ActiveQuery

getLanguages() публичный статический Метод

Returns language objects.
Устаревший: since version 1.5.2
public static getLanguages ( boolean $active = true, boolean $asArray = false ) : Language | array
$active boolean True/False according to the status of the language.
$asArray boolean Return the languages as language object or as 'flat' array
Результат Language | array

getStatusName() публичный Метод

Returns the state of the language (Active, Inactive or Beta) in the current language.
public getStatusName ( ) : string
Результат string

getStatusNames() публичный статический Метод

Returns the names of possible states in an associative array.
public static getStatusNames ( ) : array
Результат array

rules() публичный Метод

public rules ( )

tableName() публичный статический Метод

public static tableName ( )