PHP Class lajax\translatemanager\models\Language

Inheritance: extends yii\db\ActiveRecord
Show file Open project: lajax/yii2-translate-manager Class Usage Examples

Public Methods

Method Description
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 ( )

Method Details

attributeLabels() public method

public attributeLabels ( )

getDb() public static method

public static getDb ( )

getGridStatistic() public method

Returns the completness of a given translation (language).
public getGridStatistic ( ) : integer
return integer

getIds() public method

Deprecation: since version 1.4.5
public getIds ( ) : ActiveQuery
return yii\db\ActiveQuery

getLanguageNames() public static method

Returns the list of languages stored in the database in an array.
Deprecation: since version 1.5.2
public static getLanguageNames ( boolean $active = false ) : array
$active boolean True/False according to the status of the language.
return array

getLanguageSources() public method

public getLanguageSources ( ) : ActiveQuery
return yii\db\ActiveQuery

getLanguageTranslate() public method

public getLanguageTranslate ( ) : ActiveQuery
return yii\db\ActiveQuery

getLanguages() public static method

Returns language objects.
Deprecation: 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
return Language | array

getStatusName() public method

Returns the state of the language (Active, Inactive or Beta) in the current language.
public getStatusName ( ) : string
return string

getStatusNames() public static method

Returns the names of possible states in an associative array.
public static getStatusNames ( ) : array
return array

rules() public method

public rules ( )

tableName() public static method

public static tableName ( )