Beispiel #1
0
 public function execute()
 {
     if (false === ($order = GWF_Order::getByID(Common::getGet('oid')))) {
         return $this->module->error('err_order');
     }
     if (false !== Common::getGet('mark_paid')) {
         return $this->onMarkPaid($order) . $this->templateOrder($order);
         #FIXME: {gizmore} method does not exists
     }
     if (false !== Common::getPost('exec')) {
         return $this->onExecute($order) . $this->templateOrder($order);
     }
     if (false !== Common::getPost('edit')) {
         return $this->onEdit($order) . $this->templateOrder($order);
     }
     return $this->templateOrder($order);
 }