processEvent() public method

processes the application for the event with id $event_id returns a boolean to indicate whether this was successful or not.
public processEvent ( CController $controller, User $notify_user = null ) : boolean
$controller CController
$notify_user User
return boolean
 /**
  * actually generates and submits the therapy application.
  *
  * @throws CHttpException
  */
 public function actionProcessApplication()
 {
     $service = new OphCoTherapyapplication_Processor($this->event);
     $user = null;
     if (@Yii::app()->params['OphCoTherapyapplication_cc_applicant']) {
         $user = User::model()->findByPk(Yii::app()->user->id);
     }
     if ($service->processEvent($this, $user)) {
         Yii::app()->user->setFlash('success', 'Application processed.');
     } else {
         Yii::app()->user->setFlash('error', 'Unable to process the application at this time.');
     }
     $this->redirect(array($this->successUri . $this->event->id));
 }