/**
  * Internal function to return a Thesis object from a row.
  * @param $row array
  * @return Thesis
  */
 function &_returnThesisFromRow(&$row)
 {
     $thesisPlugin =& PluginRegistry::getPlugin('generic', $this->parentPluginName);
     $thesisPlugin->import('Thesis');
     $thesis = new Thesis();
     $thesis->setId($row['thesis_id']);
     $thesis->setJournalId($row['journal_id']);
     $thesis->setStatus($row['status']);
     $thesis->setDegree($row['degree']);
     $thesis->setDegreeName($row['degree_name']);
     $thesis->setDepartment($row['department']);
     $thesis->setUniversity($row['university']);
     $thesis->setDateApproved($this->dateFromDB($row['date_approved']));
     $thesis->setTitle($row['title']);
     $thesis->setAbstract($row['abstract']);
     $thesis->setUrl($row['url']);
     $thesis->setComment($row['comment']);
     $thesis->setStudentFirstName($row['student_first_name']);
     $thesis->setStudentMiddleName($row['student_middle_name']);
     $thesis->setStudentLastName($row['student_last_name']);
     $thesis->setStudentEmail($row['student_email']);
     $thesis->setStudentEmailPublish($row['student_email_publish']);
     $thesis->setStudentBio($row['student_bio']);
     $thesis->setSupervisorFirstName($row['supervisor_first_name']);
     $thesis->setSupervisorMiddleName($row['supervisor_middle_name']);
     $thesis->setSupervisorLastName($row['supervisor_last_name']);
     $thesis->setSupervisorEmail($row['supervisor_email']);
     $thesis->setDiscipline($row['discipline']);
     $thesis->setSubjectClass($row['subject_class']);
     $thesis->setSubject($row['subject']);
     $thesis->setCoverageGeo($row['coverage_geo']);
     $thesis->setCoverageChron($row['coverage_chron']);
     $thesis->setCoverageSample($row['coverage_sample']);
     $thesis->setMethod($row['method']);
     $thesis->setLanguage($row['language']);
     $thesis->setDateSubmitted($row['date_submitted']);
     return $thesis;
 }