In an op-amp integrator, the capacitor is charged/discharged, with a constant current, which is directly proportional to the input voltage. The advantage over an op-amp integrator, to a plain old RC circuit, is the current flowing in/out of the capacitor is independent of the voltage on the capacitor. Of course this assumes that the op-amp's output is not saturated.