/** * Internal function to return a Referral object from a row. * @param $row array * @return Referral */ function &_returnReferralFromRow(&$row) { $referral = new Referral(); $referral->setId($row['referral_id']); $referral->setArticleId($row['article_id']); $referral->setStatus($row['status']); $referral->setUrl($row['url']); $referral->setDateAdded($this->datetimeFromDB($row['date_added'])); $referral->setLinkCount($row['link_count']); $this->getDataObjectSettings('referral_settings', 'referral_id', $row['referral_id'], $referral); return $referral; }