/** * Internal function to return an approval notice object from a row. * @param $row array * @return ApprovalNotice */ function &_returnApprovalNoticeFromRow(&$row) { $approvalNotice = new ApprovalNotice(); $approvalNotice->setId($row['approval_notice_id']); $approvalNotice->setCommittees($row['committees']); $approvalNotice->setReviewTypes($row['review_types']); $approvalNotice->setActive($row['active']); $approvalNotice->setApprovalNoticeTitle($row['title']); $approvalNotice->setApprovalNoticeHeader($row['header']); $approvalNotice->setApprovalNoticeBody($row['body']); $approvalNotice->setApprovalNoticeFooter($row['footer']); return $approvalNotice; }