/** * Construtor. */ function clsPmieducarServidorDisciplina($ref_cod_disciplina = NULL, $ref_ref_cod_instituicao = NULL, $ref_cod_servidor = NULL, $ref_cod_curso = NULL) { $db = new clsBanco(); $this->_schema = 'pmieducar.'; $this->_tabela = $this->_schema . 'servidor_disciplina'; $this->_campos_lista = $this->_todos_campos = 'ref_cod_disciplina, ref_ref_cod_instituicao, ref_cod_servidor, ref_cod_curso'; if (is_numeric($ref_cod_servidor) && is_numeric($ref_ref_cod_instituicao)) { $servidor = new clsPmieducarServidor($ref_cod_servidor, NULL, NULL, NULL, NULL, NULL, NULL, $ref_ref_cod_instituicao); if ($servidor->existe()) { $this->ref_cod_servidor = $ref_cod_servidor; $this->ref_ref_cod_instituicao = $ref_ref_cod_instituicao; } } if (is_numeric($ref_cod_disciplina)) { $componenteMapper = new ComponenteCurricular_Model_ComponenteDataMapper(); try { $componenteMapper->find($ref_cod_disciplina); $this->ref_cod_disciplina = $ref_cod_disciplina; } catch (Exception $e) { } } if (is_numeric($ref_cod_curso)) { $curso = new clsPmieducarCurso($ref_cod_curso); if ($curso->existe()) { $this->ref_cod_curso = $ref_cod_curso; } } }