backend\models\OrderSearch::rules PHP Метод

rules() публичный Метод

public rules ( )
    public function rules()
    {
        // only fields in rules() are searchable
        return [[['order_sn', 'school_id', 'store_id', 'user_id', 'payment', 'real_fee', 'status', 'date'], 'safe'], [['date', 'real_fee'], 'trim']];
    }