function indentify($id) { $modelCurso = new ModelCurso(); $data = $modelCurso->getCurso($id); $this->_id = $data['curso_id']; $this->_nombre = $data['curso_nombre']; $this->_credito = $data['curso_credito']; $this->_activo = $data['curso_flag_activo']; return $data; }