Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
pad-upe
Commits
47114de8
"...views/projeto/git@sites.upe.br:walter.felipe/submeta.git" did not exist on "5d1c5c161ae3fb3cf822c7478c01efd81b486aed"
Commit
47114de8
authored
Aug 18, 2023
by
PedroLopesUPE
Browse files
Merge branch 'main' into dev-joao-pdf_generator
parents
2c21473e
d63bcfda
Changes
67
Hide whitespace changes
Inline
Side-by-side
app/Models/Tabelas/Ensino/EnsinoProjeto.php
View file @
47114de8
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
namespace
App\Models\Tabelas\Ensino
;
namespace
App\Models\Tabelas\Ensino
;
use
App\Models\Planejamento
;
use
App\Models\Planejamento
;
use
App\Models\Tabelas\Traits\ExpandModel
;
use
App\Models\Tabelas\Traits\ExpandTask
;
use
App\Models\UserPad
;
use
App\Models\UserPad
;
use
App\Models\Util\Funcao
;
use
App\Models\Util\Funcao
;
use
App\Models\Util\Natureza
;
use
App\Models\Util\Natureza
;
...
@@ -11,8 +13,11 @@ use Illuminate\Database\Eloquent\Model;
...
@@ -11,8 +13,11 @@ use Illuminate\Database\Eloquent\Model;
use
Illuminate\Validation\Rule
;
use
Illuminate\Validation\Rule
;
class
EnsinoProjeto
extends
Model
class
EnsinoProjeto
extends
Model
{
{
/**
use
ExpandModel
;
use
ExpandTask
;
/**
* References table ensino_aulas
* References table ensino_aulas
*
*
* @var string
* @var string
...
@@ -41,6 +46,18 @@ class EnsinoProjeto extends Model
...
@@ -41,6 +46,18 @@ class EnsinoProjeto extends Model
return
Funcao
::
listFuncaoProjeto
(
$this
->
funcao
);
return
Funcao
::
listFuncaoProjeto
(
$this
->
funcao
);
}
}
/** @return string|array */
public
function
naturezaToString
()
{
return
Natureza
::
listNatureza
(
$this
->
natureza
);
}
/** @return string|array */
public
function
funcaoToString
()
{
return
Funcao
::
listFuncaoProjeto
(
$this
->
funcao
);
}
public
static
function
rules
()
public
static
function
rules
()
{
{
return
[
return
[
...
...
app/Models/Tabelas/Ensino/EnsinoSupervisao.php
View file @
47114de8
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
namespace
App\Models\Tabelas\Ensino
;
namespace
App\Models\Tabelas\Ensino
;
use
App\Models\Planejamento
;
use
App\Models\Planejamento
;
use
App\Models\Tabelas\Traits\ExpandModel
;
use
App\Models\Tabelas\Traits\ExpandTask
;
use
App\Models\UserPad
;
use
App\Models\UserPad
;
use
App\Models\Util\Nivel
;
use
App\Models\Util\Nivel
;
use
App\Models\Util\Supervisao
;
use
App\Models\Util\Supervisao
;
...
@@ -11,8 +13,11 @@ use Illuminate\Database\Eloquent\Model;
...
@@ -11,8 +13,11 @@ use Illuminate\Database\Eloquent\Model;
use
Illuminate\Validation\Rule
;
use
Illuminate\Validation\Rule
;
class
EnsinoSupervisao
extends
Model
class
EnsinoSupervisao
extends
Model
{
{
/**
use
ExpandModel
;
use
ExpandTask
;
/**
* References table ensino_orientacoes
* References table ensino_orientacoes
*
*
* @var string
* @var string
...
@@ -41,6 +46,18 @@ class EnsinoSupervisao extends Model
...
@@ -41,6 +46,18 @@ class EnsinoSupervisao extends Model
return
Supervisao
::
listSupervisao
(
$this
->
type_supervisao
);
return
Supervisao
::
listSupervisao
(
$this
->
type_supervisao
);
}
}
/** @return string */
public
function
nivelToString
()
{
return
Nivel
::
listNivel
(
$this
->
nivel
);
}
/** @return string */
public
function
supervisaoToString
()
{
return
Supervisao
::
listSupervisao
(
$this
->
type_supervisao
);
}
/** @return string */
/** @return string */
public
function
chSemanal
()
public
function
chSemanal
()
{
{
...
...
app/Models/Tabelas/Extensao/ExtensaoCoordenacao.php
View file @
47114de8
...
@@ -5,13 +5,18 @@ namespace App\Models\Tabelas\Extensao;
...
@@ -5,13 +5,18 @@ namespace App\Models\Tabelas\Extensao;
use
App\Models\Planejamento
;
use
App\Models\Planejamento
;
use
App\Models\UserPad
;
use
App\Models\UserPad
;
use
App\Models\Tabelas\Constants
;
use
App\Models\Tabelas\Constants
;
use
App\Models\Tabelas\Traits\ExpandModel
;
use
App\Models\Tabelas\Traits\ExpandTask
;
use
App\Queries\Tabelas\Extensao\ExtensaoCoordenacaoQuery
;
use
App\Queries\Tabelas\Extensao\ExtensaoCoordenacaoQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Validation\Rule
;
use
Illuminate\Validation\Rule
;
class
ExtensaoCoordenacao
extends
Model
class
ExtensaoCoordenacao
extends
Model
{
{
/**
use
ExpandModel
;
use
ExpandTask
;
/**
* References table ensino_aulas
* References table ensino_aulas
*
*
* @var string
* @var string
...
...
app/Models/Tabelas/Extensao/ExtensaoOrientacao.php
View file @
47114de8
...
@@ -5,13 +5,18 @@ namespace App\Models\Tabelas\Extensao;
...
@@ -5,13 +5,18 @@ namespace App\Models\Tabelas\Extensao;
use
App\Models\Planejamento
;
use
App\Models\Planejamento
;
use
App\Models\UserPad
;
use
App\Models\UserPad
;
use
App\Models\Tabelas\Constants
;
use
App\Models\Tabelas\Constants
;
use
App\Models\Tabelas\Traits\ExpandModel
;
use
App\Models\Tabelas\Traits\ExpandTask
;
use
App\Queries\Tabelas\Extensao\ExtensaoOrientacaoQuery
;
use
App\Queries\Tabelas\Extensao\ExtensaoOrientacaoQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Validation\Rule
;
use
Illuminate\Validation\Rule
;
class
ExtensaoOrientacao
extends
Model
class
ExtensaoOrientacao
extends
Model
{
{
/**
use
ExpandModel
;
use
ExpandTask
;
/**
* References table ensino_aulas
* References table ensino_aulas
*
*
* @var string
* @var string
...
...
app/Models/Tabelas/Extensao/ExtensaoOutros.php
View file @
47114de8
...
@@ -3,12 +3,17 @@
...
@@ -3,12 +3,17 @@
namespace
App\Models\Tabelas\Extensao
;
namespace
App\Models\Tabelas\Extensao
;
use
App\Models\Planejamento
;
use
App\Models\Planejamento
;
use
App\Models\Tabelas\Traits\ExpandModel
;
use
App\Models\Tabelas\Traits\ExpandTask
;
use
App\Models\UserPad
;
use
App\Models\UserPad
;
use
App\Queries\Tabelas\Extensao\ExtensaoOutrosQuery
;
use
App\Queries\Tabelas\Extensao\ExtensaoOutrosQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
class
ExtensaoOutros
extends
Model
class
ExtensaoOutros
extends
Model
{
{
use
ExpandModel
;
use
ExpandTask
;
/**
/**
* References table ensino_aulas
* References table ensino_aulas
*
*
...
...
app/Models/Tabelas/Gestao/GestaoCoordenacaoLaboratoriosDidaticos.php
View file @
47114de8
...
@@ -3,13 +3,18 @@
...
@@ -3,13 +3,18 @@
namespace
App\Models\Tabelas\Gestao
;
namespace
App\Models\Tabelas\Gestao
;
use
App\Models\Planejamento
;
use
App\Models\Planejamento
;
use
App\Models\Tabelas\Traits\ExpandModel
;
use
App\Models\Tabelas\Traits\ExpandTask
;
use
App\Models\UserPad
;
use
App\Models\UserPad
;
use
App\Queries\Tabelas\Gestao\GestaoCoordenacaoLaboratoriosDidaticosQuery
;
use
App\Queries\Tabelas\Gestao\GestaoCoordenacaoLaboratoriosDidaticosQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
class
GestaoCoordenacaoLaboratoriosDidaticos
extends
Model
class
GestaoCoordenacaoLaboratoriosDidaticos
extends
Model
{
{
/**
use
ExpandModel
;
use
ExpandTask
;
/**
* References table ensino_aulas
* References table ensino_aulas
*
*
* @var string
* @var string
...
...
app/Models/Tabelas/Gestao/GestaoCoordenacaoProgramaInstitucional.php
View file @
47114de8
...
@@ -3,13 +3,18 @@
...
@@ -3,13 +3,18 @@
namespace
App\Models\Tabelas\Gestao
;
namespace
App\Models\Tabelas\Gestao
;
use
App\Models\Planejamento
;
use
App\Models\Planejamento
;
use
App\Models\Tabelas\Traits\ExpandModel
;
use
App\Models\Tabelas\Traits\ExpandTask
;
use
App\Models\UserPad
;
use
App\Models\UserPad
;
use
App\Queries\Tabelas\Gestao\GestaoCoordenacaoProgramaInstitucionalQuery
;
use
App\Queries\Tabelas\Gestao\GestaoCoordenacaoProgramaInstitucionalQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
class
GestaoCoordenacaoProgramaInstitucional
extends
Model
class
GestaoCoordenacaoProgramaInstitucional
extends
Model
{
{
/**
use
ExpandModel
;
use
ExpandTask
;
/**
* References table ensino_aulas
* References table ensino_aulas
*
*
* @var string
* @var string
...
...
app/Models/Tabelas/Gestao/GestaoMembroCamaras.php
View file @
47114de8
...
@@ -3,13 +3,18 @@
...
@@ -3,13 +3,18 @@
namespace
App\Models\Tabelas\Gestao
;
namespace
App\Models\Tabelas\Gestao
;
use
App\Models\Planejamento
;
use
App\Models\Planejamento
;
use
App\Models\Tabelas\Traits\ExpandModel
;
use
App\Models\Tabelas\Traits\ExpandTask
;
use
App\Models\UserPad
;
use
App\Models\UserPad
;
use
App\Queries\Tabelas\Gestao\GestaoMembroCamarasQuery
;
use
App\Queries\Tabelas\Gestao\GestaoMembroCamarasQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
class
GestaoMembroCamaras
extends
Model
class
GestaoMembroCamaras
extends
Model
{
{
/**
use
ExpandModel
;
use
ExpandTask
;
/**
* References table ensino_aulas
* References table ensino_aulas
*
*
* @var string
* @var string
...
...
app/Models/Tabelas/Gestao/GestaoMembroComissao.php
View file @
47114de8
...
@@ -3,12 +3,17 @@
...
@@ -3,12 +3,17 @@
namespace
App\Models\Tabelas\Gestao
;
namespace
App\Models\Tabelas\Gestao
;
use
App\Models\Planejamento
;
use
App\Models\Planejamento
;
use
App\Models\Tabelas\Traits\ExpandModel
;
use
App\Models\Tabelas\Traits\ExpandTask
;
use
App\Models\UserPad
;
use
App\Models\UserPad
;
use
App\Queries\Tabelas\Gestao\GestaoMembroComissaoQuery
;
use
App\Queries\Tabelas\Gestao\GestaoMembroComissaoQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
class
GestaoMembroComissao
extends
Model
class
GestaoMembroComissao
extends
Model
{
{
use
ExpandModel
;
use
ExpandTask
;
protected
$table
=
'gestao_membro_comissao'
;
protected
$table
=
'gestao_membro_comissao'
;
protected
$fillable
=
[
'user_pad_id'
,
'dimensao'
,
'cod_atividade'
,
'nome'
,
'documento'
,
'ch_semanal'
];
protected
$fillable
=
[
'user_pad_id'
,
'dimensao'
,
'cod_atividade'
,
'nome'
,
'documento'
,
'ch_semanal'
];
...
...
app/Models/Tabelas/Gestao/GestaoMembroConselho.php
View file @
47114de8
...
@@ -3,13 +3,18 @@
...
@@ -3,13 +3,18 @@
namespace
App\Models\Tabelas\Gestao
;
namespace
App\Models\Tabelas\Gestao
;
use
App\Models\Planejamento
;
use
App\Models\Planejamento
;
use
App\Models\Tabelas\Traits\ExpandModel
;
use
App\Models\Tabelas\Traits\ExpandTask
;
use
App\Models\UserPad
;
use
App\Models\UserPad
;
use
App\Queries\Tabelas\Gestao\GestaoMembroConselhoQuery
;
use
App\Queries\Tabelas\Gestao\GestaoMembroConselhoQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
class
GestaoMembroConselho
extends
Model
class
GestaoMembroConselho
extends
Model
{
{
/**
use
ExpandModel
;
use
ExpandTask
;
/**
* References table ensino_aulas
* References table ensino_aulas
*
*
* @var string
* @var string
...
...
app/Models/Tabelas/Gestao/GestaoMembroTitularConselho.php
View file @
47114de8
...
@@ -3,13 +3,18 @@
...
@@ -3,13 +3,18 @@
namespace
App\Models\Tabelas\Gestao
;
namespace
App\Models\Tabelas\Gestao
;
use
App\Models\Planejamento
;
use
App\Models\Planejamento
;
use
App\Models\Tabelas\Traits\ExpandModel
;
use
App\Models\Tabelas\Traits\ExpandTask
;
use
App\Models\UserPad
;
use
App\Models\UserPad
;
use
App\Queries\Tabelas\Gestao\GestaoMembroTitularConselhoQuery
;
use
App\Queries\Tabelas\Gestao\GestaoMembroTitularConselhoQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
class
GestaoMembroTitularConselho
extends
Model
class
GestaoMembroTitularConselho
extends
Model
{
{
/**
use
ExpandModel
;
use
ExpandTask
;
/**
* References table ensino_aulas
* References table ensino_aulas
*
*
* @var string
* @var string
...
...
app/Models/Tabelas/Gestao/GestaoOutros.php
View file @
47114de8
...
@@ -3,12 +3,17 @@
...
@@ -3,12 +3,17 @@
namespace
App\Models\Tabelas\Gestao
;
namespace
App\Models\Tabelas\Gestao
;
use
App\Models\Planejamento
;
use
App\Models\Planejamento
;
use
App\Models\Tabelas\Traits\ExpandModel
;
use
App\Models\Tabelas\Traits\ExpandTask
;
use
App\Models\UserPad
;
use
App\Models\UserPad
;
use
App\Queries\Tabelas\Gestao\GestaoOutrosQuery
;
use
App\Queries\Tabelas\Gestao\GestaoOutrosQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
class
GestaoOutros
extends
Model
class
GestaoOutros
extends
Model
{
{
use
ExpandModel
;
use
ExpandTask
;
/**
/**
* References table ensino_aulas
* References table ensino_aulas
*
*
...
...
app/Models/Tabelas/Gestao/GestaoRepresentanteUnidadeEducacao.php
View file @
47114de8
...
@@ -3,13 +3,18 @@
...
@@ -3,13 +3,18 @@
namespace
App\Models\Tabelas\Gestao
;
namespace
App\Models\Tabelas\Gestao
;
use
App\Models\Planejamento
;
use
App\Models\Planejamento
;
use
App\Models\Tabelas\Traits\ExpandModel
;
use
App\Models\Tabelas\Traits\ExpandTask
;
use
App\Models\UserPad
;
use
App\Models\UserPad
;
use
App\Queries\Tabelas\Gestao\GestaoRepresentanteUnidadeEducacaoQuery
;
use
App\Queries\Tabelas\Gestao\GestaoRepresentanteUnidadeEducacaoQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
class
GestaoRepresentanteUnidadeEducacao
extends
Model
class
GestaoRepresentanteUnidadeEducacao
extends
Model
{
{
/**
use
ExpandModel
;
use
ExpandTask
;
/**
* References table ensino_aulas
* References table ensino_aulas
*
*
* @var string
* @var string
...
...
app/Models/Tabelas/Pesquisa/PesquisaCoordenacao.php
View file @
47114de8
...
@@ -5,6 +5,8 @@ namespace App\Models\Tabelas\Pesquisa;
...
@@ -5,6 +5,8 @@ namespace App\Models\Tabelas\Pesquisa;
use
App\Models\Planejamento
;
use
App\Models\Planejamento
;
use
App\Models\UserPad
;
use
App\Models\UserPad
;
use
App\Models\Tabelas\Constants
;
use
App\Models\Tabelas\Constants
;
use
App\Models\Tabelas\Traits\ExpandModel
;
use
App\Models\Tabelas\Traits\ExpandTask
;
use
App\Queries\Tabelas\Pesquisa\PesquisaCoordenacaoQuery
;
use
App\Queries\Tabelas\Pesquisa\PesquisaCoordenacaoQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
...
@@ -14,6 +16,9 @@ class PesquisaCoordenacao extends Model
...
@@ -14,6 +16,9 @@ class PesquisaCoordenacao extends Model
{
{
use
SoftDeletes
;
use
SoftDeletes
;
use
ExpandModel
;
use
ExpandTask
;
protected
$table
=
'pesquisa_coordenacao'
;
protected
$table
=
'pesquisa_coordenacao'
;
protected
$fillable
=
[
'orientacao_id'
,
'cod_dimensao'
,
'user_pad_id'
,
'dimensao'
,
'cod_atividade'
,
'titulo_projeto'
,
'linha_grupo_pesquisa'
,
'funcao'
,
'ch_semanal'
];
protected
$fillable
=
[
'orientacao_id'
,
'cod_dimensao'
,
'user_pad_id'
,
'dimensao'
,
'cod_atividade'
,
'titulo_projeto'
,
'linha_grupo_pesquisa'
,
'funcao'
,
'ch_semanal'
];
...
@@ -37,6 +42,10 @@ class PesquisaCoordenacao extends Model
...
@@ -37,6 +42,10 @@ class PesquisaCoordenacao extends Model
{
{
return
Constants
::
listFuncaoProjeto
(
$this
->
funcao
);
return
Constants
::
listFuncaoProjeto
(
$this
->
funcao
);
}
}
public
function
funcaoToString
()
{
return
Constants
::
listFuncaoProjeto
(
$this
->
funcao
);
}
public
static
function
rules
()
public
static
function
rules
()
{
{
...
...
app/Models/Tabelas/Pesquisa/PesquisaLideranca.php
View file @
47114de8
...
@@ -5,6 +5,8 @@ namespace App\Models\Tabelas\Pesquisa;
...
@@ -5,6 +5,8 @@ namespace App\Models\Tabelas\Pesquisa;
use
App\Models\Planejamento
;
use
App\Models\Planejamento
;
use
App\Models\UserPad
;
use
App\Models\UserPad
;
use
App\Models\Tabelas\Constants
;
use
App\Models\Tabelas\Constants
;
use
App\Models\Tabelas\Traits\ExpandModel
;
use
App\Models\Tabelas\Traits\ExpandTask
;
use
App\Queries\Tabelas\Pesquisa\PesquisaLiderancaQuery
;
use
App\Queries\Tabelas\Pesquisa\PesquisaLiderancaQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
...
@@ -13,6 +15,8 @@ use Illuminate\Validation\Rule;
...
@@ -13,6 +15,8 @@ use Illuminate\Validation\Rule;
class
PesquisaLideranca
extends
Model
class
PesquisaLideranca
extends
Model
{
{
use
SoftDeletes
;
use
SoftDeletes
;
use
ExpandModel
;
use
ExpandTask
;
protected
$table
=
'pesquisa_lideranca'
;
protected
$table
=
'pesquisa_lideranca'
;
...
@@ -38,6 +42,10 @@ class PesquisaLideranca extends Model
...
@@ -38,6 +42,10 @@ class PesquisaLideranca extends Model
return
Constants
::
listFuncaoProjeto
(
$this
->
funcao
);
return
Constants
::
listFuncaoProjeto
(
$this
->
funcao
);
}
}
public
function
funcaoToString
()
{
return
Constants
::
listFuncaoProjeto
(
$this
->
funcao
);
}
public
static
function
rules
()
public
static
function
rules
()
{
{
return
[
return
[
...
...
app/Models/Tabelas/Pesquisa/PesquisaOrientacao.php
View file @
47114de8
...
@@ -5,6 +5,8 @@ namespace App\Models\Tabelas\Pesquisa;
...
@@ -5,6 +5,8 @@ namespace App\Models\Tabelas\Pesquisa;
use
App\Models\Planejamento
;
use
App\Models\Planejamento
;
use
App\Models\UserPad
;
use
App\Models\UserPad
;
use
App\Models\Tabelas\Constants
;
use
App\Models\Tabelas\Constants
;
use
App\Models\Tabelas\Traits\ExpandModel
;
use
App\Models\Tabelas\Traits\ExpandTask
;
use
App\Queries\Tabelas\Pesquisa\PesquisaOrientacaoQuery
;
use
App\Queries\Tabelas\Pesquisa\PesquisaOrientacaoQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
...
@@ -13,6 +15,8 @@ use Illuminate\Validation\Rule;
...
@@ -13,6 +15,8 @@ use Illuminate\Validation\Rule;
class
PesquisaOrientacao
extends
Model
class
PesquisaOrientacao
extends
Model
{
{
use
SoftDeletes
;
use
SoftDeletes
;
use
ExpandModel
;
use
ExpandTask
;
protected
$table
=
'pesquisa_orientacao'
;
protected
$table
=
'pesquisa_orientacao'
;
...
@@ -38,6 +42,10 @@ class PesquisaOrientacao extends Model
...
@@ -38,6 +42,10 @@ class PesquisaOrientacao extends Model
return
Constants
::
listFuncaoOrientador
(
$this
->
funcao
);
return
Constants
::
listFuncaoOrientador
(
$this
->
funcao
);
}
}
public
function
funcaoToString
()
{
return
Constants
::
listFuncaoOrientador
(
$this
->
funcao
);
}
public
static
function
rules
()
public
static
function
rules
()
{
{
return
[
return
[
...
...
app/Models/Tabelas/Pesquisa/PesquisaOutros.php
View file @
47114de8
...
@@ -3,12 +3,17 @@
...
@@ -3,12 +3,17 @@
namespace
App\Models\Tabelas\Pesquisa
;
namespace
App\Models\Tabelas\Pesquisa
;
use
App\Models\Planejamento
;
use
App\Models\Planejamento
;
use
App\Models\Tabelas\Traits\ExpandModel
;
use
App\Models\Tabelas\Traits\ExpandTask
;
use
App\Models\UserPad
;
use
App\Models\UserPad
;
use
App\Queries\Tabelas\Pesquisa\PesquisaOutrosQuery
;
use
App\Queries\Tabelas\Pesquisa\PesquisaOutrosQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
class
PesquisaOutros
extends
Model
class
PesquisaOutros
extends
Model
{
{
use
ExpandModel
;
use
ExpandTask
;
/**
/**
* References table ensino_aulas
* References table ensino_aulas
*
*
...
...
app/Models/Tabelas/Traits/ExpandModel.php
0 → 100644
View file @
47114de8
<?php
namespace
App\Models\Tabelas\Traits
;
trait
ExpandModel
{
public
static
function
getTableName
()
{
$classPath
=
self
::
class
;
$model
=
new
$classPath
();
return
$model
->
table
;
}
public
static
function
getColumnName
(
$column
)
{
$classPath
=
self
::
class
;
$model
=
new
$classPath
();
return
sprintf
(
"%s.%s"
,
$model
->
table
,
$column
);
}
}
\ No newline at end of file
app/Models/Tabelas/Traits/ExpandTask.php
0 → 100644
View file @
47114de8
<?php
namespace
App\Models\Tabelas\Traits
;
use
App\Models\Avaliacao
;
trait
ExpandTask
{
public
function
avaliacao
()
{
return
$this
->
hasOne
(
Avaliacao
::
class
,
'tarefa_id'
,
'id'
)
->
whereType
(
Avaliacao
::
getTypeByClassPath
(
$this
::
class
));
}
}
\ No newline at end of file
app/Models/Util/Avaliacao.php
View file @
47114de8
...
@@ -5,6 +5,7 @@ namespace App\Models\Util;
...
@@ -5,6 +5,7 @@ namespace App\Models\Util;
class
Avaliacao
class
Avaliacao
{
{
//class is depreciated
const
ENSINO_AULA
=
1
;
const
ENSINO_AULA
=
1
;
const
ENSINO_COORDENACAO_REGENCIA
=
2
;
const
ENSINO_COORDENACAO_REGENCIA
=
2
;
const
ENSINO_ORIENTACAO
=
3
;
const
ENSINO_ORIENTACAO
=
3
;
...
...
Prev
1
2
3
4
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment