public function push_article()
 {
     // Bundle article into .article file
     $bundlr = new Bundlr();
     $article = $bundlr->bundle($this);
     // Push article to adobe's cloud
     $adobe = new Adobe();
     $adobe->upload_article_folio($this, $article);
 }
 public function download_article()
 {
     if (!is_user_logged_in()) {
         $this->return_json(401, array('message' => 'You must be logged in to download the article.'));
     }
     $entity = $this->construct_entity(array('id' => $_REQUEST['id'], 'entityType' => 'article'));
     $bundlr = new Bundlr();
     $bundlr->download_zip($entity, true);
 }