30 $this->factory = $factory;
42 $manager = $this->factory->getEventManager();
43 $eventContext = $this->prepareEventContextFromContext($context, $event->
getSection());
44 $actionResult = $manager->create($event, $eventContext);
59 $manager = $this->factory->getEventManager();
60 $eventContext = $this->prepareEventContextFromContext($context, $event->
getSection(), $event);
61 $actionResult = $manager->update($event, $eventContext);
68 $manager = $this->factory->getEventManager();
69 $eventContext = $this->prepareEventContextFromContext($context, $event->
getSection());
70 $actionResult = $manager->delete($event, $eventContext);
77 $manager = $this->factory->getEventManager();
78 $eventContext = $this->prepareEventContextFromContext($context, $event->
getSection());
79 $actionResult = $manager->createInstance($event, $eventContext);
86 $manager = $this->factory->getEventManager();
87 $eventContext = $this->prepareEventContextFromContext($context, $event->
getSection());
88 $actionResult = $manager->updateInstance($event, $eventContext);
95 $manager = $this->factory->getEventManager();
96 $eventContext = $this->prepareEventContextFromContext($context, $event->
getSection());
97 $actionResult = $manager->deleteInstance($event, $eventContext);
104 $manager = $this->factory->getSectionManager();
105 $manager->create($section);
112 $manager = $this->factory->getSectionManager();
113 $manager->update($section);
120 $manager = $this->factory->getSectionManager();
121 $manager->delete($section);
136 $sectionConnectionMap = $context->sectionConnections;
137 $sectionConnection = $sectionConnectionMap->getItem($eventSection->getId());
141 if (isset($context->eventConnections))
143 $eventContext->setEventConnection($context->eventConnections->getItem($event->getId()));
146 if ($location = $event->getLocation())
148 $eventContext->location = Util::getTextLocation((
string)$location);
152 $eventContext->setSectionConnection($sectionConnection);
154 return $eventContext;
166 $result->setData($actionResult->
getData());
171 $this->factory->handleErrors(
isSuccess($internalCall=false)