/**
  * @private
  * updates the article referrers given an id
  */
 function _updateArticleReferrersById($articleId)
 {
     if (array_key_exists('HTTP_REFERER', $_SERVER)) {
         $referrers = new Referers();
         $referrers->addReferer($_SERVER['HTTP_REFERER'], $articleId, $this->_blogInfo->getId());
     }
 }
 /**
  * updates the referrers but only if there is no $articleId parameter in the request. If that's the case,
  * it will be left up to the correct action to take care of updating the referrers
  *
  * @private
  */
 function _updateReferrer()
 {
     if ($this->_request->getValue("articleId") != "" || $this->_request->getValue("articleName") != "") {
         return true;
     }
     // update the referer statistics
     $referers = new Referers();
     if (array_key_exists('HTTP_REFERER', $_SERVER)) {
         $referers->addReferer($_SERVER['HTTP_REFERER'], 0, $this->_blogInfo->getId());
     }
     return true;
 }