The effects of photoionization on galaxy formation - I. Model and results atz=0 | Synapse