public function rules()
 {
     return array_merge(parent::rules(), array(array('values', 'valuesValidator'), array('name', 'unique', 'className' => 'EavAttribute', 'attributeName' => 'name'), array('label', 'required'), array('name', 'length', 'max' => 150), array('label, info', 'length', 'max' => 250), array('name, label, info', 'filter', 'filter' => 'trim'), array('name, label, info', 'filter', 'filter' => 'strip_tags'), array('status, sort', 'numerical', 'integerOnly' => true), array('status', 'in', 'range' => array_keys($this->statusList)), array('id, name, label, status, sort, type, data_type, info', 'safe', 'on' => 'search')));
 }
 public function rules()
 {
     return array_merge(parent::rules(), array(array('values', 'valuesValidator'), array('name', 'unique', 'className' => 'EavAttribute', 'attributeName' => 'name')));
 }
 public function rules()
 {
     return array_merge(parent::rules(), [['values', 'valuesValidator'], ['name', 'unique', 'className' => 'EavAttribute', 'attributeName' => 'name'], ['label', 'required'], ['name', 'length', 'max' => 150], ['label, info', 'length', 'max' => 250], ['icon, short_label, medium_label', 'length', 'max' => 100], ['name, label, short_label, medium_label, info, icon', 'filter', 'filter' => 'trim'], ['name, label, short_label, medium_label', 'filter', 'filter' => 'strip_tags'], ['status, sort', 'numerical', 'integerOnly' => true], ['status', 'in', 'range' => array_keys($this->statusList)], ['is_range, autocomplete', 'boolean'], ['id, name, label, short_label, medium_label, status, sort, type, data_type, info, icon, is_range, autocomplete', 'safe', 'on' => 'search']]);
 }