コード例 #1
0
ファイル: pagamento.php プロジェクト: vinik/hplt
 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;
 }
コード例 #2
0
ファイル: evento.php プロジェクト: vinik/hplt
 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;
 }