function get_aluno() { if (NULL == $this->aluno) { if (NULL == $this->id_aluno) { return NULL; } $aluno = new Aluno(); $aluno->set_id($this->get_id_aluno()); $aluno->retrieve(); $this->aluno = $aluno; } return $this->aluno; }
function get_nome_evento() { $aluno = new Aluno(); $aluno->set_id($this->get_id_aluno1()); $aluno->retrieve(); $nome_evento = $aluno->get_nome(); if ('s' == $this->get_iddupla()) { $aluno2 = new Aluno(); $aluno2->set_id($this->get_id_aluno2()); $aluno2->retrieve(); $nome_evento .= ' & ' . $aluno2->get_nome(); } return $nome_evento; }