<commit_before><?php

// src/DT/DoctoramaBundle/Controller/DoctoramaController.php;

namespace DT\DoctoramaBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Core\SecurityContext;
use Symfony\Component\HttpFoundation\Response;
use DT\DoctoramaBundle\Entity\Doctorant;

use DT\DoctoramaBundle\Entity\Reunion;
use DT\DoctoramaBundle\Entity\Personne;
use \DateTime;
/**
 * Description of DoctoramaController
 *
 * @author benjamin
 */
class DoctoramaController extends Controller {
    
    public function mesDoctorantsAction(Request $request)
    {
        /*$user = $this->get('security.context')->getToken()->getUser();
        
        $theseRepository = $this->getDoctrine()->getRepository('DTDoctoramaBundle:These');
        $theses = $theseRepository->findBy(array('encadrants'=>$user->getId()));*/
        
        
        $DoctorantRepository = $this->getDoctrine()->getRepository('DTDoctoramaBundle:Doctorant');
        $listDoctorant = $DoctorantRepository->findAll();
        return $this->render('DTDoctoramaBundle:Doctorama:liste_doctorants_encadres.html.twig', array('title' => 'Liste des doctorants encadres', 'doctorants' =>$listDoctorant));
    }
    
    public function doctorantLaboAction(Request $request)
    {
        $DoctorantRepository = $this->getDoctrine()->getRepository('DTDoctoramaBundle:Doctorant');
        $listDoctorant = $DoctorantRepository->findAll();
        
        return $this->render('DTDoctoramaBundle:Doctorama:doctorant_labo.html.twig', array('title' => 'Doctorants du laboratoire', 'listDoctorant'=> $listDoctorant));
    }
    
    public function agendaAction(Request $request)
    {
        /* Toute les réunions : juste les dates(date début et fin) en json
         * + Renvoi réunion 7 prochain par ordre croissant normale*/
        $toutesLesReunions = array(
                array('date'=>new DateTime('2014-15-12 08:00:00'),'lieu'=>'Pascal 135'),
                array('date'=>new DateTime('2014-12-09 10:00:00'),'lieu'=>'MSI 223'),
                array('date'=>new DateTime('2014-12-25 14:00:00'),'lieu'=>'Pascal 300'),
                array('date'=>new DateTime('2014-12-27 10:00:00'),'lieu'=>'Pascal 400'),
                array('date'=>new DateTime('2014-12-30 11:00:00'),'lieu'=>'Pascal 666')<commit_msg>Vue agenda : rajout de toutes les réunions 3<commit_after><?php

// src/DT/DoctoramaBundle/Controller/DoctoramaController.php;

namespace DT\DoctoramaBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Core\SecurityContext;
use Symfony\Component\HttpFoundation\Response;
use DT\DoctoramaBundle\Entity\Doctorant;

use DT\DoctoramaBundle\Entity\Reunion;
use DT\DoctoramaBundle\Entity\Personne;
use \DateTime;
/**
 * Description of DoctoramaController
 *
 * @author benjamin
 */
class DoctoramaController extends Controller {
    
    public function mesDoctorantsAction(Request $request)
    {
        /*$user = $this->get('security.context')->getToken()->getUser();
        
        $theseRepository = $this->getDoctrine()->getRepository('DTDoctoramaBundle:These');
        $theses = $theseRepository->findBy(array('encadrants'=>$user->getId()));*/
        
        
        $DoctorantRepository = $this->getDoctrine()->getRepository('DTDoctoramaBundle:Doctorant');
        $listDoctorant = $DoctorantRepository->findAll();
        return $this->render('DTDoctoramaBundle:Doctorama:liste_doctorants_encadres.html.twig', array('title' => 'Liste des doctorants encadres', 'doctorants' =>$listDoctorant));
    }
    
    public function doctorantLaboAction(Request $request)
    {
        $DoctorantRepository = $this->getDoctrine()->getRepository('DTDoctoramaBundle:Doctorant');
        $listDoctorant = $DoctorantRepository->findAll();
        
        return $this->render('DTDoctoramaBundle:Doctorama:doctorant_labo.html.twig', array('title' => 'Doctorants du laboratoire', 'listDoctorant'=> $listDoctorant));
    }
    
    public function agendaAction(Request $request)
    {
        /* Toute les réunions : juste les dates(date début et fin) en json
         * + Renvoi réunion 7 prochain par ordre croissant normale*/
        $toutesLesReunions = array(
                array('date'=>new DateTime('2014-12-12 08:00:00'),'lieu'=>'Pascal 135'),
                array('date'=>new DateTime('2014-12-09 10:00:00'),'lieu'=>'MSI 223'),
                array('date'=>new DateTime('2014-12-25 14:00:00'),'lieu'=>'Pascal 300'),
                array('date'=>new DateTime('2014-12-27 10:00:00'),'lieu'=>'Pascal 400'),
                array('date'=>new DateTime('2014-12-30 11:00:00'),'lieu'=>'Pascal 666')
{'fraction_non_alphanumeric': 0.14692936491301614, 'fraction_numerical': 0.03626074198281283, 'mean_word_length': 3.9760166840458813, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3432694', 'n_tokens_mistral': 1583, 'n_tokens_neox': 1393, 'n_words': 232}