Ejemplo n.º 1
0
 public function indexpcAction($network_domain)
 {
     $request = $this->getRequest();
     $user = $this->get('security.context')->getToken()->getUser();
     $da = $this->get('we_data_access');
     $this->collect_type = $request->get('collect_type');
     $this->conv_type = $request->get('conv_type');
     $this->pageindex = $request->get('pageindex');
     if ($this->pageindex) {
     } else {
         $this->pageindex = 1;
     }
     $this->q = $request->get('q');
     $this->label_name = $request->get('label_name');
     $conv = new \Justsy\BaseBundle\Business\Conv();
     $x = $conv->getLabel($da, $user);
     $this->labels = $x["we_convers_label"];
     $this->conv_root_ids = $this->getCollectConv($network_domain, $this->conv_type, $this->label_name);
     return $this->render('JustsyBaseBundle:Collect:index_pc.html.twig', array('curr_network_domain' => $network_domain, 'this' => $this));
 }
Ejemplo n.º 2
0
 public function getLabelAction()
 {
     $re = array();
     $user = $this->get('security.context')->getToken()->getUser();
     $request = $this->getRequest();
     $da = $this->get('we_data_access');
     $conv = new \Justsy\BaseBundle\Business\Conv();
     $re = $conv->getLabel($da, $user);
     $response = new Response(json_encode($re["we_convers_label"]["rows"]));
     $response->headers->set('Content-Type', 'text/json');
     return $response;
 }