Ejemplo n.º 1
0
 public function removeresourcebookmarkAction()
 {
     if ($this->getRequest()->isPost() && $this->_ajaxRequest) {
         if ($resource = $this->getRequest()->getParam('resource', FALSE)) {
             $resourceService = new Service_Resource();
             if ($resourceService->removeBookmark($resource, $this->_user->id)) {
                 $this->_response->appendBody('1');
                 return;
             } else {
                 $this->_response->appendBody('0');
                 return;
             }
         } else {
             $this->_response->appendBody('0');
             return;
         }
     }
 }