예제 #1
0
 public function fulltext()
 {
     $this->allowMethods(array('GET'));
     if (!isset($this->queryParams['since'])) {
         $this->e400("'since' not provided");
     }
     $newer = Zotero_FullText::getNewerInLibrary($this->objectLibraryID, $this->queryParams['since']);
     $this->libraryVersion = Zotero_Libraries::getVersion($this->objectLibraryID);
     echo Zotero_Utilities::formatJSON($newer);
     $this->end();
 }
예제 #2
0
 public function fulltext()
 {
     $this->allowMethods(array('GET'));
     // Default empty library
     if ($this->objectLibraryID === 0) {
         return new stdClass();
     }
     $newer = Zotero_FullText::getNewerInLibrary($this->objectLibraryID, !empty($this->queryParams['since']) ? $this->queryParams['since'] : 0);
     $this->libraryVersion = Zotero_Libraries::getVersion($this->objectLibraryID);
     echo Zotero_Utilities::formatJSON($newer);
     $this->end();
 }