Photoionization feedback in a self-gravitating, magnetized, turbulent cloud