mirocow\eav\models\EavAttribute::rules PHP Method

rules() public method

public rules ( )
    public function rules()
    {
        return [[['name', 'defaultValue', 'label', 'description'], 'string', 'max' => 255], [['name'], 'match', 'pattern' => '/(^|.*\\])([\\w\\.]+)(\\[.*|$)/', 'message' => Yii::t('eav', 'Attribute name must contain latin word characters only.')], [['type'], 'string', 'max' => 50], [['entityId', 'typeId', 'order'], 'integer']];
    }