Skip to content

Commit

Permalink
Merge pull request #858 from portabilis/fixes
Browse files Browse the repository at this point in the history
[2.7] Inicializa variáveis
  • Loading branch information
edersoares authored Jun 28, 2022
2 parents 97f77eb + a6e3a96 commit 17d2124
Show file tree
Hide file tree
Showing 61 changed files with 62 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ public function edita()
{
if (is_numeric($this->cod_aluno)) {
$db = new clsBanco();
$set = '';
$gruda = '';
$set = '';

if (is_numeric($this->ref_cod_religiao) || $this->ref_cod_religiao == 'NULL') {
$set .= "{$gruda}ref_cod_religiao = {$this->ref_cod_religiao}";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public function edita()
{
if (is_numeric($this->ref_cod_biblioteca) && is_numeric($this->dia)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if ($set) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public function edita()
{
if (is_numeric($this->cod_feriado)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_cod_biblioteca)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public function edita()
{
if (is_numeric($this->ref_cod_biblioteca) && is_numeric($this->ref_cod_usuario)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if ($set) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public function edita()
{
if (is_numeric($this->ref_dia) && is_numeric($this->ref_mes) && is_numeric($this->ref_ref_cod_calendario_ano_letivo) && is_numeric($this->ref_cod_calendario_anotacao)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if ($set) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ public function edita()
&& is_numeric($this->ref_cod_aluno)
) {
$db = new clsBanco();
$set = '';
$gruda = '';
$set = '';

if (is_numeric($this->ref_cod_serie)) {
$set .= "{$gruda}ref_cod_serie = {$this->ref_cod_serie}";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ public function edita()
{
if (is_numeric($this->cod_candidato_reserva_vaga)) {
$db = new clsBanco();
$set = '';
$gruda = '';
$set = '';
$campos = '';

if (is_numeric($this->ano_letivo)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ public function edita()
$gruda = '';
if (is_numeric($this->cod_curso) && is_numeric($this->ref_usuario_exc)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_usuario_cad)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public function edita()
{
if (is_numeric($this->ref_ref_cod_disciplina) && is_numeric($this->ref_ref_ref_cod_escola) && is_numeric($this->ref_ref_ref_cod_serie) && is_numeric($this->ref_cod_disciplina_topico)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if ($set) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ public function edita()
is_numeric($this->ref_cod_escola) && is_numeric($this->ref_cod_disciplina) &&
is_numeric($this->ref_usuario_exc)) {
$db = new clsBanco();
$set = '';
$gruda = '';
$set = '';

if (is_numeric($this->ref_usuario_exc)) {
$set .= "{$gruda}ref_usuario_exc = '{$this->ref_usuario_exc}'";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1344,8 +1344,8 @@ public function edita()
{
if (is_numeric($this->cod_escola)) {
$db = new clsBanco();
$set = '';
$gruda = '';
$set = '';

if (is_numeric($this->ref_usuario_cad)) {
$set .= "{$gruda}ref_usuario_cad = '{$this->ref_usuario_cad}'";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public function edita()
{
if (is_numeric($this->ref_cod_habilitacao) && is_numeric($this->ref_cod_curso)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if ($set) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ public function edita()
{
if (is_numeric($this->sequencial) && is_numeric($this->ref_ref_cod_aluno) && is_numeric($this->ref_sequencial)) {
$db = new clsBanco();
$set = '';
$gruda = '';
$set = '';

if (is_string($this->nm_disciplina)) {
$disciplina = $db->escapeString($this->nm_disciplina);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ public function edita()
{
if (is_numeric($this->cod_matricula)) {
$db = new clsBanco();
$set = '';
$gruda = '';
$set = '';

if (is_numeric($this->ref_cod_reserva_vaga)) {
$set .= "{$gruda}ref_cod_reserva_vaga = '{$this->ref_cod_reserva_vaga}'";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ public function edita()
if (is_numeric($this->ref_cod_matricula) && is_numeric($this->ref_cod_turma) &&
is_numeric($this->ref_usuario_exc) && is_numeric($this->sequencial)) {
$db = new clsBanco();
$gruda = '';
$set = '';

$gruda = '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public function edita($setDataExclusao = false)
if (is_numeric($this->cod_motivo_afastamento) && is_numeric($this->ref_usuario_exc)
&& is_numeric($this->ref_cod_instituicao)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_usuario_exc)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public function edita()
{
if (is_numeric($this->cod_motivo_baixa) && is_numeric($this->ref_usuario_exc)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_usuario_exc)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public function edita()
{
if (is_numeric($this->cod_motivo_suspensao) && is_numeric($this->ref_usuario_exc)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_usuario_exc)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public function edita()
{
if (is_numeric($this->cod_nivel) && is_numeric($this->ref_usuario_exc)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_cod_categoria_nivel)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public function edita()
{
if (is_numeric($this->cod_nivel_ensino) && is_numeric($this->ref_usuario_exc)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_usuario_exc)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ public function edita()
{
if (is_numeric($this->cod_nota_aluno) && is_numeric($this->ref_usuario_exc)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_sequencial)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public function edita()
{
if (is_numeric($this->cod_operador) && is_numeric($this->ref_usuario_exc)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_usuario_exc)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public function edita()
{
if (is_numeric($this->cod_pagamento_multa)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_usuario_cad)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ public function edita()
{
if (is_numeric($this->cod_pessoa_educ) && is_numeric($this->ref_usuario_exc)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_idpes_responsavel)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public function edita()
{
if (is_numeric($this->ref_cod_pessoa_educ) && is_numeric($this->ref_cod_deficiencia)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if ($set) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public function edita()
{
if (is_numeric($this->cod_pre_requisito) && is_numeric($this->ref_usuario_exc)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_usuario_exc)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public function edita()
{
if (is_numeric($this->cod_projeto) && is_string($this->nome)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_string($this->nome)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public function edita()
{
if (is_numeric($this->cod_quadro_horario) && is_numeric($this->ref_usuario_exc)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_usuario_exc)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ public function edita()
is_numeric($this->sequencial)
) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_cod_instituicao_substituto)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ public function edita()
{
if (is_numeric($this->ref_cod_quadro_horario) && is_numeric($this->sequencial)) {
$db = new clsBanco();
$set = '';
$gruda = '';
$set = '';
if (is_numeric($this->ref_cod_disciplina)) {
$set .= "{$gruda}ref_cod_disciplina = '{$this->ref_cod_disciplina}'";
$gruda = ', ';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public function edita()
{
if (is_numeric($this->cod_religiao) && is_numeric($this->ref_usuario_exc)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_usuario_exc)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ public function edita()
{
if (is_numeric($this->cod_reserva_vaga)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_ref_cod_escola)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public function edita()
{
if (is_numeric($this->cod_reserva)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_usuario_libera)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public function edita()
{
if (is_numeric($this->ref_curso_origem) && is_numeric($this->ref_curso_destino) && is_numeric($this->ref_usuario_exc)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_usuario_exc)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public function edita()
{
if (is_numeric($this->ref_serie_origem) && is_numeric($this->ref_serie_destino) && is_numeric($this->ref_usuario_exc)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_usuario_exc)) {
Expand Down Expand Up @@ -137,6 +138,7 @@ public function editar($serie_origem_old, $serie_destino_old)
{
if (is_numeric($this->ref_serie_origem) && is_numeric($this->ref_serie_destino) && is_numeric($this->ref_usuario_exc)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_serie_origem)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public function edita()
{
if (is_numeric($this->dia_semana)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_ref_cod_serie)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public function edita()
{
if (is_numeric($this->ref_cod_serie) && is_numeric($this->sequencial)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_cod_serie_tipo_periodo_ano)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public function edita()
{
if (is_numeric($this->ref_cod_pre_requisito) && is_numeric($this->ref_cod_operador) && is_numeric($this->ref_cod_serie)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_string($this->valor)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public function edita()
{
if (is_numeric($this->cod_serie_vaga) && is_numeric($this->vagas)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_string($this->vagas)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ public function edita()
{
if (is_numeric($this->cod_servidor) && is_numeric($this->ref_cod_instituicao)) {
$db = new clsBanco();
$set = '';
$gruda = '';
$set = '';

if (is_numeric($this->ref_idesco)) {
$set .= "{$gruda}ref_idesco = '{$this->ref_idesco}'";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public function edita()
{
if (is_numeric($this->ref_cod_servidor) && is_numeric($this->sequencial) && is_numeric($this->ref_usuario_exc) && is_numeric($this->ref_cod_instituicao)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_cod_motivo_afastamento)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public function edita()
{
if (is_numeric($this->cod_servidor_curso)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_cod_formacao)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public function edita()
{
if (is_numeric($this->ref_cod_curso) && is_numeric($this->ref_ref_cod_instituicao) && is_numeric($this->ref_cod_servidor)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if ($set) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public function edita()
is_numeric($this->ref_cod_curso)
) {
$db = new clsBanco();
$gruda = '';
$set = '';

if ($set) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public function edita()
{
if (is_numeric($this->cod_formacao) && is_numeric($this->ref_usuario_exc)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_usuario_exc)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public function edita()
{
if (is_numeric($this->cod_servidor_titulo)) {
$db = new clsBanco();
$gruda = '';
$set = '';

if (is_numeric($this->ref_cod_formacao)) {
Expand Down
Loading

0 comments on commit 17d2124

Please sign in to comment.