Esempio n. 1
0
 /**
  * Handle the input
  */
 function handle()
 {
     global $INPUT;
     // create a new plan if possible and sufficient data was given
     $this->createPlanFromInput();
     // handle workflow button presses
     if ($this->plan->isCommited()) {
         helper_plugin_move_rewrite::addLock();
         //todo: right place?
         switch ($INPUT->str('ctl')) {
             case 'continue':
                 $this->plan->nextStep();
                 break;
             case 'skip':
                 $this->plan->nextStep(true);
                 break;
             case 'abort':
                 $this->plan->abort();
                 break;
         }
     }
 }