Beispiel #1
0
 /**
  * @param ContentParam $param
  *
  * @return void|null
  */
 public function determineParam(ContentParam $param)
 {
     switch ($param->getParameter()->getParam()) {
         case 'call':
             $this->setCallId($param->getParameterId());
             break;
         case 'meeting':
             //When a meeting is given, we are only interested in the call
             $meeting = $this->getMeetingService()->setMeetingId($param->getParameterId())->getMeeting();
             if ($this->getMeetingService()->isEmpty() || sizeof($meeting->getCall()) === 0) {
                 return 'The selected meeting or has no call attached is empty';
             }
             $this->setCallId($meeting->getCall()->first()->getId());
             break;
         default:
             $this->setCallId($param->getParameterId());
             break;
     }
     return;
 }
Beispiel #2
0
 /**
  * @param ContentParam $param
  */
 public function determineParam(ContentParam $param)
 {
     switch ($param->getParameter()->getParam()) {
         case 'docRef':
             if (!is_null($docRef = $this->getRouteMatch()->getParam($param->getParameter()->getParam()))) {
                 $this->setProjectDocRef($docRef);
             }
             break;
         case 'call':
             if (!is_null($callId = $this->getRouteMatch()->getParam($param->getParameter()->getParam()))) {
                 $this->setCallId($callId);
             } else {
                 $this->setCallId($param->getParameterId());
             }
             break;
         case 'program':
             if (!is_null($programId = $this->getRouteMatch()->getParam($param->getParameter()->getParam()))) {
                 $this->setProgramId($programId);
             } else {
                 $this->setProgramId($param->getParameterId());
             }
             break;
         default:
             $this->setProjectId($param->getParameterId());
             break;
     }
 }