/** * @param $where * @return bool */ public static function getResearch($where) { $dado = Database::ReadOne('research', '*', $where); if (!$dado) { return false; } $research = new Research(); $research->setId($dado['ID_RESEARCH']); $research->setConsiderAdventista($dado['CONSIDER_ADVENTISTA']); $research->setIasdBack($dado['IASD_BACK']); $research->setIasdLocal($dado['IASD_LOCAL']); $research->setIasdVisit($dado['IASD_VISIT']); $research->setKnowAdra($dado['KNOW_ADRA']); $research->setKnowAventureiros($dado['KNOW_AVENTUREIRO']); $research->setKnowDesbravadores($dado['KNOW_DESBRAVADOR']); $research->setKnowIasd($dado['KNOW_IASD']); $research->setKnowSignification($dado['KNOW_SIGNIFICATION']); $research->setOpnionAdventista($dado['OPNION_ADVENTISTA']); $research->setOpnionIasd($dado['OPNION_IASD']); $research->setOpnionProjects($dado['OPNION_PROJECTS']); $research->setOpnionReason($dado['OPNION_REASON']); $research->setTimeFe($dado['TIME_FE']); $research->setKnowTv($dado['KNOW_TVNOVOTEMPO']); $research->setProgramTv($dado['PROGRAM_TV']); $research->setDateResearch($dado['INSERT_DATE']); $log = Database::ReadOne('login', '*', 'WHERE id_login = '******'ID_LOGIN']); $person = Person::getPerson('WHERE id_person = ' . $log['ID_PERSON']); $research->setPerson($person); return $research; }