Beispiel #1
0
 public function getfileAction($hashvalue)
 {
     $da_im = $this->get("we_data_access_im");
     $sqls = "select fileid from im_lib_files where filepath=?";
     $all_params = array((string) $hashvalue);
     $ds = $da_im->getData("t", $sqls, $all_params);
     if ($ds && count($ds["t"]["rows"]) > 0) {
         $mongoDoc = new \Justsy\MongoDocBundle\Controller\DefaultController();
         $mongoDoc->setContainer($this->container);
         return $mongoDoc->getFileAction($ds["t"]["rows"][0]["fileid"]);
     } else {
         $response = new Response("", 404);
         //$response->headers->set('Last-Modified', $_SERVER['HTTP_IF_MODIFIED_SINCE']);
         return $response;
     }
 }