コード例 #1
0
 public function onCreateLogDetails(LogCreateDelegateViewEvent $event)
 {
     $content = $this->container->get('templating')->render('InnovaCollecticielBundle:Log:log_details.html.twig', array('log' => $event->getLog(), 'listItemView' => $this->container->get('templating')->render('InnovaCollecticielBundle:Log:log_list_item.html.twig', array('log' => $event->getLog()))));
     $event->setResponseContent($content);
     $event->stopPropagation();
 }
コード例 #2
0
 /**
  * @param LogCreateDelegateViewEvent $event
  *
  * @throws \Twig_Error
  *
  * @DI\Observe("create_log_details_resource-claroline_result-mark_added")
  * @DI\Observe("create_log_details_resource-claroline_result-mark_deleted")
  */
 public function onMarkEventLogDetails(LogCreateDelegateViewEvent $event)
 {
     $content = $this->templating->render('ClarolineResultBundle:Log:log_details.html.twig', ['log' => $event->getLog(), 'listItemView' => $this->templating->render('ClarolineResultBundle:Log:log_list_item.html.twig', ['log' => $event->getLog()])]);
     $event->setResponseContent($content);
     $event->stopPropagation();
 }
コード例 #3
0
 public function onCreateLogDetails(LogCreateDelegateViewEvent $event)
 {
     $content = $this->container->get('templating')->render('UJMExoBundle:Log:log_details.html.twig', array('log' => $event->getLog()));
     $event->setResponseContent($content);
     $event->stopPropagation();
 }