Three phases of gastric function

Describe the three phases of gastric function and how gastric activity is activated and inhibited.