src/models/Measure.php
public static function getTypes()
    {
        $typesList = [];
        foreach (Yii::$app->db->getTableSchema(static::tableName())->columns['type']->enumValues as $type) {
            $typesList[$type] = MeasureHelper::t($type);
        }
        return $typesList;
    }
public static function getTypes()
    {
        $typesList = [];
        foreach (Yii::$app->db->getTableSchema(static::tableName())->columns['type']->enumValues as $type) {
            $typesList[$type] = MeasureHelper::t($type);
        }
        return $typesList;
    }
public static function getTypes ( ) { $ typesList = [ ] ; foreach ( Yii :: $ app -> db -> getTableSchema ( static :: tableName ( ) ) -> columns [ 'type' ] -> enumValues as $ type ) { $ typesList [ $ type ] = MeasureHelper :: t ( $ type ) ; } return $ typesList ; }
Get list of measure types.
@return array of types in the next format `'TypeName' => 'Translated type name'`
Get list of measure types .