public function process() { $oarticles = new OnpubArticles($this->pdo); $queryOptions = new OnpubQueryOptions(); $queryOptions->includeAuthors = TRUE; try { for ($i = 0; $i < sizeof($this->articleIDs); $i++) { $article = $oarticles->get($this->articleIDs[$i], $queryOptions); $article->sectionIDs = $this->sectionIDs; $oarticles->update($article); } } catch (PDOException $e) { throw $e; } }
public function process() { $oarticles = new OnpubArticles($this->pdo); try { $oarticles->update($this->oarticle, TRUE); } catch (PDOException $e) { throw $e; } }