The iPhone’s ringer/silent switch is traditionally used for the purposes implied by its rather conspicuous name — it either enables the ringer for incoming notifications or it silences notification sounds on demand.
With the introduction of a newly released and free jailbreak tweak called RingerActions by iOS developer Chr1s, users now have the ability to map alternative actions to the ringer/silent switch’s conditional state.