Class lajax\translatemanager\models\Language
Inheritance | lajax\translatemanager\models\Language » yii\db\ActiveRecord |
---|---|
Subclasses | lajax\translatemanager\models\searches\LanguageSearch |
This is the model class for table "language".
Public Methods
Method | Description | Defined By |
---|---|---|
attributeLabels() | lajax\translatemanager\models\Language | |
getGridStatistic() | Returns the completness of a given translation (language). | lajax\translatemanager\models\Language |
getIds() | lajax\translatemanager\models\Language | |
getLanguageNames() | Returns the list of languages stored in the database in an array. | lajax\translatemanager\models\Language |
getLanguageSources() | lajax\translatemanager\models\Language | |
getLanguageTranslate() | lajax\translatemanager\models\Language | |
getLanguages() | Returns language objects. | lajax\translatemanager\models\Language |
getStatusName() | Returns the state of the language (Active, Inactive or Beta) in the current language. | lajax\translatemanager\models\Language |
getStatusNames() | Returns the names of possible states in an associative array. | lajax\translatemanager\models\Language |
rules() | lajax\translatemanager\models\Language | |
tableName() | lajax\translatemanager\models\Language |
Constants
Constant | Value | Description | Defined By |
---|---|---|---|
STATUS_ACTIVE | 1 | Status of active language. | lajax\translatemanager\models\Language |
STATUS_BETA | 2 | Status of ‘beta’ language. | lajax\translatemanager\models\Language |
STATUS_INACTIVE | 0 | Status of inactive language. | lajax\translatemanager\models\Language |
Method Details
public void attributeLabels ( ) |
Returns the completness of a given translation (language).
public integer getGridStatistic ( ) |
public \yii\db\ActiveQuery getIds ( ) |
Returns the list of languages stored in the database in an array.
public static array getLanguageNames ( $active = false ) | ||
$active | boolean | True/False according to the status of the language. |
public \yii\db\ActiveQuery getLanguageSources ( ) |
public \yii\db\ActiveQuery getLanguageTranslate ( ) |
Returns language objects.
public static lajax\translatemanager\models\Language|array getLanguages ( $active = true, $asArray = false ) | ||
$active | boolean | True/False according to the status of the language. |
$asArray | bool | Return the languages as language object or as 'flat' array |
Returns the state of the language (Active, Inactive or Beta) in the current language.
public string getStatusName ( ) |
Returns the names of possible states in an associative array.
public static array getStatusNames ( ) |
public void rules ( ) |
public static void tableName ( ) |