This post is great: it shows you how to silence your iphone, except from a selected number of contacts.
to set this up on your iphone,
settings > do not disturb >
in ios7 you have options for ‘manual’ and ‘scheduled’
manual means that you can turn this feature on and off yourself, and scheduled means that your phone will automatically enable do not disturb on its own