Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 public function process()
 {
     $oarticles = new OnpubArticles($this->pdo);
     try {
         $oarticles->update($this->oarticle, TRUE);
     } catch (PDOException $e) {
         throw $e;
     }
 }