Example #1
0
 public function execute($dataContainer)
 {
     parent::entryPoint($dataContainer);
     $bookId = filter_input(INPUT_POST, 'bookId');
     $entityType = filter_input(INPUT_POST, 'entityType');
     $entityId = filter_input(INPUT_POST, 'entityId');
     $schoolyearId = filter_input(INPUT_POST, 'schoolyearId');
     if ($bookId && $entityType && $entityId && in_array($entityType, $this->_supportedEntities)) {
         $this->assignmentsToEntityAdd($bookId, $entityType, $entityId, $schoolyearId);
     } else {
         dieHttp('Parameter fehlen / sind inkorrekt', 400);
     }
 }
Example #2
0
 protected function entryPoint($dataContainer)
 {
     parent::entryPoint($dataContainer);
     $this->moduleTemplatePathSet();
 }