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(); }
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(); }