function handle($args) { parent::handle($args); if ($_SERVER['REQUEST_METHOD'] == 'POST') { $this->handlePost(); } else { $this->showForm(); } }
/** * Handle the request * * On GET, show the form. On POST, try to save the group. * * @return void */ protected function handle() { parent::handle(); if ($_SERVER['REQUEST_METHOD'] == 'POST') { $this->trySave(); } else { $this->showForm(); } }
function handle($args) { parent::handle($args); $this->showPage(); }
/** * Handle the request * * Shows a profile for the group, some controls, and a list of * group notices. * * @return void */ protected function handle() { parent::handle(); $this->showPage(); }