Commit 0a685084d2cbad7f8e4deab5d2ceb3a79d5caf85

Authored by Lucas Schmoeller da Silva
2 parents 0ec9f3ae 27306f5e
Exists in 2.8 and in 6 other branches 2.2, 2.3, 2.4, 2.5, 2.6, 2.7

Merge remote-tracking branch 'origin/master' into lucassch/correcoes-das-regras-de-ordenação

Showing 637 changed files with 8535 additions and 29539 deletions   Show diff stats

Too many changes.

To preserve performance only 100 of 637 files displayed.

app/Console/Commands/QueryAllCommand.php 0 → 100644
... ... @@ -0,0 +1,64 @@
  1 +<?php
  2 +
  3 +namespace App\Console\Commands;
  4 +
  5 +use App\Menu;
  6 +use Exception;
  7 +use Illuminate\Console\Command;
  8 +use Illuminate\Support\Facades\DB;
  9 +
  10 +class QueryAllCommand extends Command
  11 +{
  12 + /**
  13 + * The name and signature of the console command.
  14 + *
  15 + * @var string
  16 + */
  17 + protected $signature = 'query:all';
  18 +
  19 + /**
  20 + * The console command description.
  21 + *
  22 + * @var string
  23 + */
  24 + protected $description = 'Count duplicated scores';
  25 +
  26 + /**
  27 + * @return array
  28 + */
  29 + private function getConnections()
  30 + {
  31 + $connections = config('database.connections');
  32 +
  33 + return array_diff(array_keys($connections), ['sqlite', 'mysql', 'pgsql', 'sqlsrv', 'bussolastaging']);
  34 + }
  35 +
  36 + /**
  37 + * Execute the console command.
  38 + *
  39 + * @return mixed
  40 + */
  41 + public function handle()
  42 + {
  43 + $array = [];
  44 + $data = [];
  45 + $file = file_get_contents(storage_path('query.sql'));
  46 +
  47 + foreach ($this->getConnections() as $connection) {
  48 + try {
  49 + $data = (array) DB::connection($connection)->selectOne($file);
  50 + } catch (Exception $exception) {
  51 + continue;
  52 + }
  53 +
  54 + if (isset($data)) {
  55 + $array[] = array_merge([$connection], $data);
  56 + }
  57 + }
  58 +
  59 + $header = array_keys($data);
  60 + array_unshift($header, 'connection');
  61 +
  62 + $this->table($header, $array);
  63 + }
  64 +}
... ...
app/Http/Controllers/ExemptionListController.php 0 → 100644
... ... @@ -0,0 +1,65 @@
  1 +<?php
  2 +
  3 +namespace App\Http\Controllers;
  4 +
  5 +use App\Models\LegacyDisciplineExemption;
  6 +use App\Process;
  7 +use Illuminate\Http\Request;
  8 +use Illuminate\Support\Facades\Input;
  9 +use Illuminate\View\View;
  10 +
  11 +class ExemptionListController extends Controller
  12 +{
  13 + /**
  14 + * @param Request $request
  15 + * @return View
  16 + */
  17 + public function index(Request $request)
  18 + {
  19 + $this->breadcrumb('Consulta de dispensas', [
  20 + url('intranet/educar_index.php') => 'Escola',
  21 + ]);
  22 +
  23 + $this->menu(Process::EXEMPTION_LIST);
  24 +
  25 + $query = LegacyDisciplineExemption::active()->with('registration.student.person');
  26 +
  27 + if ($request->get('ano')) {
  28 + $ano = $request->get('ano');
  29 + $query->whereHas('registration', function ($registrationQuery) use ($ano) {
  30 + $registrationQuery->where('ano', $ano);
  31 + });
  32 + }
  33 +
  34 + $schools[] = $request->get('ref_cod_escola');
  35 +
  36 + if ($request->user()->isSchooling()) {
  37 + $schools = $request->user()->schools->pluck('cod_escola')->all();
  38 + }
  39 +
  40 + if (array_filter($schools)) {
  41 + $query->whereIn('ref_cod_escola', $schools);
  42 + }
  43 +
  44 + if ($request->get('ref_cod_serie')) {
  45 + $query->where('ref_cod_serie', $request->get('ref_cod_serie'));
  46 + }
  47 +
  48 + if ($request->get('ref_cod_curso')) {
  49 + $courseId = $request->get('ref_cod_curso');
  50 + $query->whereHas('registration', function ($registrationQuery) use ($courseId) {
  51 + $registrationQuery->where('ref_cod_curso', $courseId);
  52 + });
  53 + }
  54 +
  55 + if ($request->get('ref_cod_componente_curricular')) {
  56 + $query->where('ref_cod_disciplina', $request->get('ref_cod_componente_curricular'));
  57 + }
  58 +
  59 + $query->orderBy('data_cadastro', 'desc');
  60 +
  61 + $exemptions = $query->paginate(20)->appends(Input::except('page'));
  62 +
  63 + return view('exemption.index', compact('exemptions'));
  64 + }
  65 +}
... ...
app/Http/Kernel.php
... ... @@ -20,6 +20,7 @@ class Kernel extends HttpKernel
20 20 \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
21 21 \App\Http\Middleware\TrustProxies::class,
22 22 \App\Http\Middleware\ChangeAppName::class,
  23 + \App\Http\Middleware\ConnectTenantDatabase::class,
23 24 ];
24 25  
25 26 /**
... ... @@ -36,8 +37,6 @@ class Kernel extends HttpKernel
36 37 \Illuminate\View\Middleware\ShareErrorsFromSession::class,
37 38 // \App\Http\Middleware\VerifyCsrfToken::class,
38 39 \Illuminate\Routing\Middleware\SubstituteBindings::class,
39   - \App\Http\Middleware\ChangeAppName::class,
40   - \App\Http\Middleware\ConnectTenantDatabase::class,
41 40 \App\Http\Middleware\SetLayoutVariables::class,
42 41 \App\Http\Middleware\LoadSettings::class,
43 42 ],
... ...
app/Imports/DisciplineAcademicImport.php
... ... @@ -3,6 +3,7 @@
3 3 namespace App\Imports;
4 4  
5 5 use App\Models\LegacyDisciplineAcademicYear;
  6 +use Illuminate\Database\Eloquent\Model;
6 7 use Maatwebsite\Excel\Concerns\Importable;
7 8 use Maatwebsite\Excel\Concerns\ToModel;
8 9 use Maatwebsite\Excel\Concerns\WithHeadingRow;
... ... @@ -15,7 +16,7 @@ class DisciplineAcademicImport implements ToModel, WithProgressBar, WithHeadingR
15 16 /**
16 17 * @param array $row
17 18 *
18   - * @return \Illuminate\Database\Eloquent\Model|null
  19 + * @return Model
19 20 */
20 21 public function model(array $row)
21 22 {
... ...
app/Imports/SchoolGradeDisciplineImport.php
... ... @@ -33,7 +33,7 @@ class SchoolGradeDisciplineImport implements ToModel, WithProgressBar, WithHeadi
33 33 */
34 34 public function model(array $row)
35 35 {
36   - return LegacySchoolGradeDiscipline::query()->firstOrNew([
  36 + return LegacySchoolGradeDiscipline::query()->updateOrCreate([
37 37 'ref_ref_cod_serie' => $row['grade_id'],
38 38 'ref_ref_cod_escola' => $row['school_id'] ?? $this->school,
39 39 'ref_cod_disciplina' => $row['discipline_id'],
... ... @@ -41,7 +41,7 @@ class SchoolGradeDisciplineImport implements ToModel, WithProgressBar, WithHeadi
41 41 // FIXME
42 42 // Quando a carga horária é definida nesta tabela, não é marcado o
43 43 // check "Etapas utilizadas" da tela de séries da escola.
44   - 'carga_horaria' => $row['class_hours'],
  44 + 'carga_horaria' => null,
45 45 'etapas_especificas' => empty($row['stage']) ? 0 : 1,
46 46 'etapas_utilizadas' => str_replace('.', ',', (string) $row['stage']),
47 47 'anos_letivos' => '{' . $row['academic_year'] . '}',
... ...
app/Listeners/LoginLegacySession.php
... ... @@ -6,8 +6,10 @@ use App\Models\LegacyInstitution;
6 6 use App\Models\LegacySchoolClass;
7 7 use App\Models\LegacyStudent;
8 8 use App\User;
  9 +use Carbon\Carbon;
9 10 use Illuminate\Support\Facades\DB;
10 11 use Illuminate\Support\Facades\Session;
  12 +use Throwable;
11 13  
12 14 class LoginLegacySession
13 15 {
... ... @@ -48,10 +50,18 @@ class LoginLegacySession
48 50 {
49 51 $institution = app(LegacyInstitution::class);
50 52  
  53 + try {
  54 + $createdAt = Carbon::create($user->created_at)->getTimestamp();
  55 + } catch (Throwable $throwable) {
  56 + $createdAt = Carbon::now()->subYear()->getTimestamp();
  57 + }
  58 +
51 59 return (object) [
52 60 'personId' => $user->id,
53 61 'name' => $user->name,
54 62 'email' => $user->email,
  63 + 'role' => $user->role,
  64 + 'created_at' => $createdAt,
55 65 'institution' => $institution->name,
56 66 'city' => $institution->city,
57 67 'state' => $institution->state,
... ...
app/Models/LegacyDisciplineExemption.php 0 → 100644
... ... @@ -0,0 +1,92 @@
  1 +<?php
  2 +
  3 +namespace App\Models;
  4 +
  5 +use Illuminate\Database\Eloquent\Builder;
  6 +use Illuminate\Database\Eloquent\Model;
  7 +use Illuminate\Database\Eloquent\Relations\BelongsTo;
  8 +
  9 +/**
  10 + * Class LegacyDisciplineExemption
  11 + * @property LegacyRegistration $registration
  12 + */
  13 +class LegacyDisciplineExemption extends Model
  14 +{
  15 + /**
  16 + * @var string
  17 + */
  18 + protected $table = 'pmieducar.dispensa_disciplina';
  19 +
  20 + protected $primaryKey = 'cod_dispensa';
  21 +
  22 + /**
  23 + * @var array
  24 + */
  25 + protected $fillable = [
  26 + 'ref_cod_matricula',
  27 + 'ref_cod_disciplina',
  28 + 'ref_cod_escola',
  29 + 'ref_cod_serie',
  30 + 'ref_usuario_exc',
  31 + 'ref_usuario_cad',
  32 + 'ref_cod_tipo_dispensa',
  33 + 'data_cadastro',
  34 + 'data_exclusao',
  35 + 'ativo',
  36 + 'observacao',
  37 + 'cod_dispensa',
  38 + 'updated_at',
  39 + ];
  40 +
  41 + protected $dates = [
  42 + 'data_cadastro',
  43 + 'data_exclusao',
  44 + 'updated_at'
  45 + ];
  46 +
  47 + /**
  48 + * @var bool
  49 + */
  50 + public $timestamps = false;
  51 +
  52 + /**
  53 + * Relação com a matrícula.
  54 + *
  55 + * @return BelongsTo
  56 + */
  57 + public function registration()
  58 + {
  59 + return $this->belongsTo(LegacyRegistration::class, 'ref_cod_matricula');
  60 + }
  61 +
  62 + /**
  63 + * @return BelongsTo
  64 + */
  65 + public function discipline()
  66 + {
  67 + return $this->belongsTo(LegacyDiscipline::class, 'ref_cod_disciplina');
  68 + }
  69 +
  70 + /**
  71 + * @return BelongsTo
  72 + */
  73 + public function type()
  74 + {
  75 + return $this->belongsTo(LegacyExemptionType::class, 'ref_cod_tipo_dispensa');
  76 + }
  77 +
  78 + /**
  79 + * @param Builder $query
  80 + *
  81 + * @return Builder
  82 + */
  83 + public function scopeActive($query)
  84 + {
  85 + return $query->where('ativo', 1);
  86 + }
  87 +
  88 + public function getDateFormat()
  89 + {
  90 + return 'Y-m-d H:i:s.u';
  91 + }
  92 +}
... ...
app/Models/LegacyExemptionType.php 0 → 100644
... ... @@ -0,0 +1,43 @@
  1 +<?php
  2 +
  3 +namespace App\Models;
  4 +
  5 +use Illuminate\Database\Eloquent\Model;
  6 +
  7 +/**
  8 + * Class LegacyDisciplineExemption
  9 + * @property LegacyRegistration $registration
  10 + */
  11 +class LegacyExemptionType extends Model
  12 +{
  13 + /**
  14 + * @var string
  15 + */
  16 + protected $table = 'pmieducar.tipo_dispensa';
  17 +
  18 + protected $primaryKey = 'cod_tipo_dispensa';
  19 +
  20 + /**
  21 + * @var array
  22 + */
  23 + protected $fillable = [
  24 + 'ref_usuario_exc',
  25 + 'ref_usuario_cad',
  26 + 'nm_tipo',
  27 + 'descricao',
  28 + 'data_cadastro',
  29 + 'data_exclusao',
  30 + 'ativo',
  31 + 'ref_cod_instituicao',
  32 + ];
  33 +
  34 + /**
  35 + * @var bool
  36 + */
  37 + public $timestamps = false;
  38 +
  39 + public function __toString()
  40 + {
  41 + return $this->nm_tipo;
  42 + }
  43 +}
... ...
app/Models/LegacySchool.php
... ... @@ -5,6 +5,7 @@ namespace App\Models;
5 5 use Illuminate\Database\Eloquent\Model;
6 6 use Illuminate\Database\Eloquent\Relations\BelongsTo;
7 7 use Illuminate\Database\Eloquent\Relations\BelongsToMany;
  8 +use Illuminate\Support\Facades\DB;
8 9  
9 10 /**
10 11 * LegacySchool
... ... @@ -86,4 +87,9 @@ class LegacySchool extends Model
86 87 {
87 88 return $this->belongsTo(LegacyOrganization::class, 'ref_idpes');
88 89 }
  90 +
  91 + public function getNameAttribute()
  92 + {
  93 + return DB::selectOne('SELECT relatorio.get_nome_escola(:escola) AS nome', ['escola' => $this->id])->nome;
  94 + }
89 95 }
... ...
app/Models/LegacySchoolGradeDiscipline.php
... ... @@ -3,13 +3,12 @@
3 3 namespace App\Models;
4 4  
5 5 use Illuminate\Database\Eloquent\Model;
  6 +use Illuminate\Database\Eloquent\Relations\BelongsTo;
6 7  
7 8 class LegacySchoolGradeDiscipline extends Model
8 9 {
9 10 protected $table = 'pmieducar.escola_serie_disciplina';
10 11  
11   - protected $primaryKey = 'ref_ref_cod_serie';
12   -
13 12 protected $fillable = [
14 13 'ref_ref_cod_serie',
15 14 'ref_ref_cod_escola',
... ... @@ -23,4 +22,12 @@ class LegacySchoolGradeDiscipline extends Model
23 22 ];
24 23  
25 24 public $timestamps = false;
  25 +
  26 + /**
  27 + * @return BelongsTo
  28 + */
  29 + public function discipline()
  30 + {
  31 + return $this->belongsTo(LegacyDiscipline::class, 'ref_cod_disciplina');
  32 + }
26 33 }
... ...
app/Process.php
... ... @@ -13,7 +13,10 @@ class Process
13 13 const MENU_LIBRARY = 57;
14 14 const MENU_CONFIGURATIONS = 25;
15 15  
  16 + const CONSULTAS = 9998890;
  17 +
16 18 const ENROLLMENT_HISTORY = 1001;
17 19 const ATTENDED_CANDIDATE = 1002;
18 20 const UNDO_STUDENT_UNIFICATION = 2001;
  21 + const EXEMPTION_LIST = 2002;
19 22 }
... ...
app/Services/SchoolGradeDisciplineService.php 0 → 100644
... ... @@ -0,0 +1,20 @@
  1 +<?php
  2 +
  3 +namespace App\Services;
  4 +
  5 +use App\Models\LegacySchoolGradeDiscipline;
  6 +use Illuminate\Support\Collection;
  7 +
  8 +class SchoolGradeDisciplineService
  9 +{
  10 + /**
  11 + * @param $schoolId
  12 + * @param $gradeId
  13 + * @return LegacySchoolGradeDiscipline[]|Collection
  14 + */
  15 + public function getDisciplines($schoolId, $gradeId)
  16 + {
  17 + return LegacySchoolGradeDiscipline::where('ref_ref_cod_escola', $schoolId)
  18 + ->where('ref_ref_cod_serie', $gradeId)->get()->pluck('discipline');
  19 + }
  20 +}
... ...
app/Services/iDiarioService.php
... ... @@ -59,7 +59,7 @@ class iDiarioService
59 59 {
60 60 try {
61 61 $response = $this->get('/api/v2/step_activity', ['unity_id' => $unitId, 'step_number' => $step]);
62   - $body = trim((string) $response->getBody());
  62 + $body = trim((string)$response->getBody());
63 63  
64 64 if ($body === 'true') {
65 65 return true;
... ... @@ -81,7 +81,23 @@ class iDiarioService
81 81 {
82 82 try {
83 83 $response = $this->get('/api/v2/step_activity', ['classroom_id' => $classroomId, 'step_number' => $step]);
84   - $body = trim((string) $response->getBody());
  84 + $body = trim((string)$response->getBody());
  85 +
  86 + if ($body === 'true') {
  87 + return true;
  88 + }
  89 + } catch (Exception $e) {
  90 + return false;
  91 + }
  92 +
  93 + return false;
  94 + }
  95 +
  96 + public function getTeacherClassroomsActivity(int $teacherId, int $classroomId): bool
  97 + {
  98 + try {
  99 + $response = $this->get('/api/v2/teacher_classrooms/has_activities', ['teacher_id' => $teacherId, 'classroom_id' => $classroomId]);
  100 + $body = trim((string)$response->getBody());
85 101  
86 102 if ($body === 'true') {
87 103 return true;
... ...
app/Support/Database/DropForeignKey.php 0 → 100644
... ... @@ -0,0 +1,63 @@
  1 +<?php
  2 +
  3 +namespace App\Support\Database;
  4 +
  5 +use Illuminate\Support\Facades\DB;
  6 +
  7 +trait DropForeignKey
  8 +{
  9 + /**
  10 + * @param string $table
  11 + *
  12 + * @return string
  13 + */
  14 + protected function searchForeignKeysFor($table)
  15 + {
  16 + return <<<SQL
  17 +select
  18 + tc.table_schema,
  19 + tc.table_name,
  20 + tc.constraint_name
  21 +from information_schema.table_constraints as tc
  22 +join information_schema.key_column_usage as kcu
  23 +on tc.constraint_name = kcu.constraint_name
  24 +join information_schema.constraint_column_usage as ccu
  25 +on ccu.constraint_name = tc.constraint_name
  26 +where true
  27 + and tc.constraint_type = 'FOREIGN KEY'
  28 + and ccu.table_name = '{$table}'
  29 + and true
  30 +group by tc.table_schema, tc.table_name, tc.constraint_name;
  31 +SQL;
  32 + }
  33 +
  34 + /**
  35 + * @param string $schema
  36 + * @param string $table
  37 + * @param string $name
  38 + *
  39 + * @return void
  40 + */
  41 + protected function dropForeignKeyIn($schema, $table, $name)
  42 + {
  43 + DB::unprepared("ALTER TABLE {$schema}.{$table} DROP CONSTRAINT {$name};");
  44 + }
  45 +
  46 + /**
  47 + * @param string $table
  48 + */
  49 + protected function dropForeignKeysFromTable($table)
  50 + {
  51 + $sql = $this->searchForeignKeysFor($table);
  52 +
  53 + $foreignKeys = DB::select($sql);
  54 +
  55 + foreach ($foreignKeys as $foreignKey) {
  56 + $this->dropForeignKeyIn(
  57 + $foreignKey->table_schema,
  58 + $foreignKey->table_name,
  59 + $foreignKey->constraint_name
  60 + );
  61 + }
  62 + }
  63 +}
... ...
app/Support/Database/DropPrimaryKey.php 0 → 100644
... ... @@ -0,0 +1,63 @@
  1 +<?php
  2 +
  3 +namespace App\Support\Database;
  4 +
  5 +use Illuminate\Support\Facades\DB;
  6 +
  7 +trait DropPrimaryKey
  8 +{
  9 + /**
  10 + * @param string $table
  11 + *
  12 + * @return string
  13 + */
  14 + protected function searchPrimaryKeysFor($table)
  15 + {
  16 + return <<<SQL
  17 +select
  18 + tc.table_schema,
  19 + tc.table_name,
  20 + tc.constraint_name
  21 +from information_schema.table_constraints as tc
  22 +join information_schema.key_column_usage as kcu
  23 +on tc.constraint_name = kcu.constraint_name
  24 +join information_schema.constraint_column_usage as ccu
  25 +on ccu.constraint_name = tc.constraint_name
  26 +where true
  27 + and tc.constraint_type = 'PRIMARY KEY'
  28 + and ccu.table_name = '{$table}'
  29 + and true
  30 +group by tc.table_schema, tc.table_name, tc.constraint_name;
  31 +SQL;
  32 + }
  33 +
  34 + /**
  35 + * @param string $schema
  36 + * @param string $table
  37 + * @param string $name
  38 + *
  39 + * @return void
  40 + */
  41 + protected function dropPrimaryKeyIn($schema, $table, $name)
  42 + {
  43 + DB::unprepared("ALTER TABLE {$schema}.{$table} DROP CONSTRAINT {$name};");
  44 + }
  45 +
  46 + /**
  47 + * @param string $table
  48 + */
  49 + protected function dropPrimaryKeysFromTable($table)
  50 + {
  51 + $sql = $this->searchPrimaryKeysFor($table);
  52 +
  53 + $foreignKeys = DB::select($sql);
  54 +
  55 + foreach ($foreignKeys as $foreignKey) {
  56 + $this->dropPrimaryKeyIn(
  57 + $foreignKey->table_schema,
  58 + $foreignKey->table_name,
  59 + $foreignKey->constraint_name
  60 + );
  61 + }
  62 + }
  63 +}
... ...
app/User.php
... ... @@ -14,8 +14,11 @@ use Illuminate\Foundation\Auth\User as Authenticatable;
14 14 /**
15 15 * @property int $id
16 16 * @property string $name
  17 + * @property string $email
  18 + * @property string $role
17 19 * @property string $login
18 20 * @property string $password
  21 + * @property string $created_at
19 22 * @property LegacyUserType $type
20 23 * @property LegacyEmployee $employee
21 24 */
... ... @@ -120,6 +123,22 @@ class User extends Authenticatable
120 123 }
121 124  
122 125 /**
  126 + * @return string
  127 + */
  128 + public function getRoleAttribute()
  129 + {
  130 + return $this->type->name;
  131 + }
  132 +
  133 + /**
  134 + * @return string
  135 + */
  136 + public function getCreatedAtAttribute()
  137 + {
  138 + return $this->data_cadastro;
  139 + }
  140 +
  141 + /**
123 142 * @return int
124 143 */
125 144 public function getLevel()
... ...
composer.json
... ... @@ -3,7 +3,7 @@
3 3 "description": "Software livre de gestão escolar",
4 4 "type": "project",
5 5 "license": "GPL-2.0-or-later",
6   - "version": "2.2.2",
  6 + "version": "2.2.4",
7 7 "keywords": [
8 8 "Portabilis",
9 9 "i-Educar"
... ...
composer.lock
... ... @@ -4,20 +4,20 @@
4 4 "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5 5 "This file is @generated automatically"
6 6 ],
7   - "content-hash": "119eaf4c569490bff8215509cadd8948",
  7 + "content-hash": "0238dee27c12bd9b29a0dc2eb50ae4ee",
8 8 "packages": [
9 9 {
10 10 "name": "aws/aws-sdk-php",
11   - "version": "3.110.2",
  11 + "version": "3.110.10",
12 12 "source": {
13 13 "type": "git",
14 14 "url": "https://github.com/aws/aws-sdk-php.git",
15   - "reference": "b39e6c8c3082f0f1f6672a6bd2aba92cfc38da9a"
  15 + "reference": "705fc1ffe05747e6789b19480764ebcd06995911"
16 16 },
17 17 "dist": {
18 18 "type": "zip",
19   - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/b39e6c8c3082f0f1f6672a6bd2aba92cfc38da9a",
20   - "reference": "b39e6c8c3082f0f1f6672a6bd2aba92cfc38da9a",
  19 + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/705fc1ffe05747e6789b19480764ebcd06995911",
  20 + "reference": "705fc1ffe05747e6789b19480764ebcd06995911",
21 21 "shasum": ""
22 22 },
23 23 "require": {
... ... @@ -87,7 +87,7 @@
87 87 "s3",
88 88 "sdk"
89 89 ],
90   - "time": "2019-08-23T18:12:25+00:00"
  90 + "time": "2019-09-05T18:11:21+00:00"
91 91 },
92 92 {
93 93 "name": "cocur/slugify",
... ... @@ -810,25 +810,25 @@
810 810 },
811 811 {
812 812 "name": "fideloper/proxy",
813   - "version": "4.2.0",
  813 + "version": "4.2.1",
814 814 "source": {
815 815 "type": "git",
816 816 "url": "https://github.com/fideloper/TrustedProxy.git",
817   - "reference": "39a4c2165e578bc771f5dc031c273210a3a9b6d2"
  817 + "reference": "03085e58ec7bee24773fa5a8850751a6e61a7e8a"
818 818 },
819 819 "dist": {
820 820 "type": "zip",
821   - "url": "https://api.github.com/repos/fideloper/TrustedProxy/zipball/39a4c2165e578bc771f5dc031c273210a3a9b6d2",
822   - "reference": "39a4c2165e578bc771f5dc031c273210a3a9b6d2",
  821 + "url": "https://api.github.com/repos/fideloper/TrustedProxy/zipball/03085e58ec7bee24773fa5a8850751a6e61a7e8a",
  822 + "reference": "03085e58ec7bee24773fa5a8850751a6e61a7e8a",
823 823 "shasum": ""
824 824 },
825 825 "require": {
826   - "illuminate/contracts": "~5.0|~6.0",
  826 + "illuminate/contracts": "^5.0|^6.0|^7.0",
827 827 "php": ">=5.4.0"
828 828 },
829 829 "require-dev": {
830   - "illuminate/http": "~5.6|~6.0",
831   - "mockery/mockery": "~1.0",
  830 + "illuminate/http": "^5.0|^6.0|^7.0",
  831 + "mockery/mockery": "^1.0",
832 832 "phpunit/phpunit": "^6.0"
833 833 },
834 834 "type": "library",
... ... @@ -860,7 +860,7 @@
860 860 "proxy",
861 861 "trusted proxy"
862 862 ],
863   - "time": "2019-07-29T16:49:45+00:00"
  863 + "time": "2019-09-03T16:45:42+00:00"
864 864 },
865 865 {
866 866 "name": "google/recaptcha",
... ... @@ -1098,22 +1098,22 @@
1098 1098 },
1099 1099 {
1100 1100 "name": "honeybadger-io/honeybadger-laravel",
1101   - "version": "v1.6.0",
  1101 + "version": "v1.7.2",
1102 1102 "source": {
1103 1103 "type": "git",
1104 1104 "url": "https://github.com/honeybadger-io/honeybadger-laravel.git",
1105   - "reference": "40480a582bd6d50269d47438e4865f6a5363a55d"
  1105 + "reference": "2b5209a7df12bf09393174cc663146e5ad516d2a"
1106 1106 },
1107 1107 "dist": {
1108 1108 "type": "zip",
1109   - "url": "https://api.github.com/repos/honeybadger-io/honeybadger-laravel/zipball/40480a582bd6d50269d47438e4865f6a5363a55d",
1110   - "reference": "40480a582bd6d50269d47438e4865f6a5363a55d",
  1109 + "url": "https://api.github.com/repos/honeybadger-io/honeybadger-laravel/zipball/2b5209a7df12bf09393174cc663146e5ad516d2a",
  1110 + "reference": "2b5209a7df12bf09393174cc663146e5ad516d2a",
1111 1111 "shasum": ""
1112 1112 },
1113 1113 "require": {
1114   - "honeybadger-io/honeybadger-php": "^1.2",
1115   - "illuminate/console": "^5.5",
1116   - "illuminate/support": "^5.5",
  1114 + "honeybadger-io/honeybadger-php": "^1.7",
  1115 + "illuminate/console": "^5.5|^6.0",
  1116 + "illuminate/support": "^5.5|^6.0",
1117 1117 "php": "^7.1",
1118 1118 "sixlive/dotenv-editor": "^1.1"
1119 1119 },
... ... @@ -1163,20 +1163,20 @@
1163 1163 "logging",
1164 1164 "monitoring"
1165 1165 ],
1166   - "time": "2019-06-27T13:53:01+00:00"
  1166 + "time": "2019-09-05T16:28:05+00:00"
1167 1167 },
1168 1168 {
1169 1169 "name": "honeybadger-io/honeybadger-php",
1170   - "version": "v1.6.0",
  1170 + "version": "v1.7.0",
1171 1171 "source": {
1172 1172 "type": "git",
1173 1173 "url": "https://github.com/honeybadger-io/honeybadger-php.git",
1174   - "reference": "329c2f6682e88012e33b84c8fa6b2f4b4080a9e7"
  1174 + "reference": "da7a3b09083e5267e4f85e2697c9c3f1c6a9da5c"
1175 1175 },
1176 1176 "dist": {
1177 1177 "type": "zip",
1178   - "url": "https://api.github.com/repos/honeybadger-io/honeybadger-php/zipball/329c2f6682e88012e33b84c8fa6b2f4b4080a9e7",
1179   - "reference": "329c2f6682e88012e33b84c8fa6b2f4b4080a9e7",
  1178 + "url": "https://api.github.com/repos/honeybadger-io/honeybadger-php/zipball/da7a3b09083e5267e4f85e2697c9c3f1c6a9da5c",
  1179 + "reference": "da7a3b09083e5267e4f85e2697c9c3f1c6a9da5c",
1180 1180 "shasum": ""
1181 1181 },
1182 1182 "require": {
... ... @@ -1186,6 +1186,7 @@
1186 1186 "symfony/http-foundation": ">=3.3 || ^4.1"
1187 1187 },
1188 1188 "require-dev": {
  1189 + "larapack/dd": "^1.1",
1189 1190 "mockery/mockery": "^1.1",
1190 1191 "phpunit/phpunit": "^7.0|^8.0"
1191 1192 },
... ... @@ -1218,7 +1219,7 @@
1218 1219 "logging",
1219 1220 "monitoring"
1220 1221 ],
1221   - "time": "2019-07-18T10:51:25+00:00"
  1222 + "time": "2019-09-04T13:54:28+00:00"
1222 1223 },
1223 1224 {
1224 1225 "name": "jakub-onderka/php-console-color",
... ... @@ -1310,16 +1311,16 @@
1310 1311 },
1311 1312 {
1312 1313 "name": "laravel/framework",
1313   - "version": "v5.8.33",
  1314 + "version": "v5.8.35",
1314 1315 "source": {
1315 1316 "type": "git",
1316 1317 "url": "https://github.com/laravel/framework.git",
1317   - "reference": "58b81842cbdcfbbd8302790ac0f98119ea1c56e5"
  1318 + "reference": "5a9e4d241a8b815e16c9d2151e908992c38db197"
1318 1319 },
1319 1320 "dist": {
1320 1321 "type": "zip",
1321   - "url": "https://api.github.com/repos/laravel/framework/zipball/58b81842cbdcfbbd8302790ac0f98119ea1c56e5",
1322   - "reference": "58b81842cbdcfbbd8302790ac0f98119ea1c56e5",
  1322 + "url": "https://api.github.com/repos/laravel/framework/zipball/5a9e4d241a8b815e16c9d2151e908992c38db197",
  1323 + "reference": "5a9e4d241a8b815e16c9d2151e908992c38db197",
1323 1324 "shasum": ""
1324 1325 },
1325 1326 "require": {
... ... @@ -1402,6 +1403,7 @@
1402 1403 "suggest": {
1403 1404 "aws/aws-sdk-php": "Required to use the SQS queue driver and SES mail driver (^3.0).",
1404 1405 "doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.6).",
  1406 + "ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().",
1405 1407 "ext-pcntl": "Required to use all features of the queue worker.",
1406 1408 "ext-posix": "Required to use all features of the queue worker.",
1407 1409 "filp/whoops": "Required for friendly error pages in development (^2.1.4).",
... ... @@ -1453,7 +1455,7 @@
1453 1455 "framework",
1454 1456 "laravel"
1455 1457 ],
1456   - "time": "2019-08-20T15:45:17+00:00"
  1458 + "time": "2019-09-03T16:44:30+00:00"
1457 1459 },
1458 1460 {
1459 1461 "name": "laravel/tinker",
... ... @@ -1698,29 +1700,29 @@
1698 1700 },
1699 1701 {
1700 1702 "name": "maatwebsite/excel",
1701   - "version": "3.1.15",
  1703 + "version": "3.1.17",
1702 1704 "source": {
1703 1705 "type": "git",
1704 1706 "url": "https://github.com/Maatwebsite/Laravel-Excel.git",
1705   - "reference": "7d47c7af2ddcf93b4fee4f167e10702e918f69f1"
  1707 + "reference": "bd377ad37b285d9bc25c9adca360e4392041dea6"
1706 1708 },
1707 1709 "dist": {
1708 1710 "type": "zip",
1709   - "url": "https://api.github.com/repos/Maatwebsite/Laravel-Excel/zipball/7d47c7af2ddcf93b4fee4f167e10702e918f69f1",
1710   - "reference": "7d47c7af2ddcf93b4fee4f167e10702e918f69f1",
  1711 + "url": "https://api.github.com/repos/Maatwebsite/Laravel-Excel/zipball/bd377ad37b285d9bc25c9adca360e4392041dea6",
  1712 + "reference": "bd377ad37b285d9bc25c9adca360e4392041dea6",
1711 1713 "shasum": ""
1712 1714 },
1713 1715 "require": {
1714 1716 "ext-json": "*",
1715   - "illuminate/support": "5.5.*|5.6.*|5.7.*|5.8.*",
  1717 + "illuminate/support": "5.5.*|5.6.*|5.7.*|5.8.*|^6.0",
1716 1718 "opis/closure": "^3.1",
1717 1719 "php": "^7.0",
1718 1720 "phpoffice/phpspreadsheet": "^1.6"
1719 1721 },
1720 1722 "require-dev": {
1721 1723 "mockery/mockery": "^1.1",
1722   - "orchestra/database": "^3.8",
1723   - "orchestra/testbench": "^3.8",
  1724 + "orchestra/database": "^4.0",
  1725 + "orchestra/testbench": "^4.0",
1724 1726 "phpunit/phpunit": "^8.0",
1725 1727 "predis/predis": "^1.1"
1726 1728 },
... ... @@ -1762,7 +1764,7 @@
1762 1764 "php",
1763 1765 "phpspreadsheet"
1764 1766 ],
1765   - "time": "2019-07-16T08:40:48+00:00"
  1767 + "time": "2019-09-04T19:28:20+00:00"
1766 1768 },
1767 1769 {
1768 1770 "name": "markbaker/complex",
... ... @@ -1931,16 +1933,16 @@
1931 1933 },
1932 1934 {
1933 1935 "name": "monolog/monolog",
1934   - "version": "1.24.0",
  1936 + "version": "1.25.1",
1935 1937 "source": {
1936 1938 "type": "git",
1937 1939 "url": "https://github.com/Seldaek/monolog.git",
1938   - "reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266"
  1940 + "reference": "70e65a5470a42cfec1a7da00d30edb6e617e8dcf"
1939 1941 },
1940 1942 "dist": {
1941 1943 "type": "zip",
1942   - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266",
1943   - "reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266",
  1944 + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/70e65a5470a42cfec1a7da00d30edb6e617e8dcf",
  1945 + "reference": "70e65a5470a42cfec1a7da00d30edb6e617e8dcf",
1944 1946 "shasum": ""
1945 1947 },
1946 1948 "require": {
... ... @@ -2005,7 +2007,7 @@
2005 2007 "logging",
2006 2008 "psr-3"
2007 2009 ],
2008   - "time": "2018-11-05T09:00:11+00:00"
  2010 + "time": "2019-09-06T13:49:17+00:00"
2009 2011 },
2010 2012 {
2011 2013 "name": "mtdowling/jmespath.php",
... ... @@ -2064,16 +2066,16 @@
2064 2066 },
2065 2067 {
2066 2068 "name": "nesbot/carbon",
2067   - "version": "2.23.1",
  2069 + "version": "2.24.0",
2068 2070 "source": {
2069 2071 "type": "git",
2070 2072 "url": "https://github.com/briannesbitt/Carbon.git",
2071   - "reference": "767617a047e5b8b8b3b0b6023a2650847ed7df02"
  2073 + "reference": "934459c5ac0658bc765ad1e53512c7c77adcac29"
2072 2074 },
2073 2075 "dist": {
2074 2076 "type": "zip",
2075   - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/767617a047e5b8b8b3b0b6023a2650847ed7df02",
2076   - "reference": "767617a047e5b8b8b3b0b6023a2650847ed7df02",
  2077 + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/934459c5ac0658bc765ad1e53512c7c77adcac29",
  2078 + "reference": "934459c5ac0658bc765ad1e53512c7c77adcac29",
2077 2079 "shasum": ""
2078 2080 },
2079 2081 "require": {
... ... @@ -2127,20 +2129,20 @@
2127 2129 "datetime",
2128 2130 "time"
2129 2131 ],
2130   - "time": "2019-08-17T13:57:34+00:00"
  2132 + "time": "2019-08-31T16:37:55+00:00"
2131 2133 },
2132 2134 {
2133 2135 "name": "nikic/php-parser",
2134   - "version": "v4.2.3",
  2136 + "version": "v4.2.4",
2135 2137 "source": {
2136 2138 "type": "git",
2137 2139 "url": "https://github.com/nikic/PHP-Parser.git",
2138   - "reference": "e612609022e935f3d0337c1295176505b41188c8"
  2140 + "reference": "97e59c7a16464196a8b9c77c47df68e4a39a45c4"
2139 2141 },
2140 2142 "dist": {
2141 2143 "type": "zip",
2142   - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/e612609022e935f3d0337c1295176505b41188c8",
2143   - "reference": "e612609022e935f3d0337c1295176505b41188c8",
  2144 + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/97e59c7a16464196a8b9c77c47df68e4a39a45c4",
  2145 + "reference": "97e59c7a16464196a8b9c77c47df68e4a39a45c4",
2144 2146 "shasum": ""
2145 2147 },
2146 2148 "require": {
... ... @@ -2178,20 +2180,20 @@
2178 2180 "parser",
2179 2181 "php"
2180 2182 ],
2181   - "time": "2019-08-12T20:17:41+00:00"
  2183 + "time": "2019-09-01T07:51:21+00:00"
2182 2184 },
2183 2185 {
2184 2186 "name": "opis/closure",
2185   - "version": "3.3.1",
  2187 + "version": "3.4.0",
2186 2188 "source": {
2187 2189 "type": "git",
2188 2190 "url": "https://github.com/opis/closure.git",
2189   - "reference": "92927e26d7fc3f271efe1f55bdbb073fbb2f0722"
  2191 + "reference": "60a97fff133b1669a5b1776aa8ab06db3f3962b7"
2190 2192 },
2191 2193 "dist": {
2192 2194 "type": "zip",
2193   - "url": "https://api.github.com/repos/opis/closure/zipball/92927e26d7fc3f271efe1f55bdbb073fbb2f0722",
2194   - "reference": "92927e26d7fc3f271efe1f55bdbb073fbb2f0722",
  2195 + "url": "https://api.github.com/repos/opis/closure/zipball/60a97fff133b1669a5b1776aa8ab06db3f3962b7",
  2196 + "reference": "60a97fff133b1669a5b1776aa8ab06db3f3962b7",
2195 2197 "shasum": ""
2196 2198 },
2197 2199 "require": {
... ... @@ -2239,7 +2241,7 @@
2239 2241 "serialization",
2240 2242 "serialize"
2241 2243 ],
2242   - "time": "2019-07-09T21:58:11+00:00"
  2244 + "time": "2019-09-02T21:07:33+00:00"
2243 2245 },
2244 2246 {
2245 2247 "name": "paragonie/random_compat",
... ... @@ -2481,26 +2483,26 @@
2481 2483 },
2482 2484 {
2483 2485 "name": "prettus/l5-repository",
2484   - "version": "2.6.32",
  2486 + "version": "2.6.35",
2485 2487 "source": {
2486 2488 "type": "git",
2487 2489 "url": "https://github.com/andersao/l5-repository.git",
2488   - "reference": "f6ebfffee80a38e1d2dcf479e70b1a9ead397c24"
  2490 + "reference": "1bd39355c90a4ae241f0442ccb3b16508bd1ee29"
2489 2491 },
2490 2492 "dist": {
2491 2493 "type": "zip",
2492   - "url": "https://api.github.com/repos/andersao/l5-repository/zipball/f6ebfffee80a38e1d2dcf479e70b1a9ead397c24",
2493   - "reference": "f6ebfffee80a38e1d2dcf479e70b1a9ead397c24",
  2494 + "url": "https://api.github.com/repos/andersao/l5-repository/zipball/1bd39355c90a4ae241f0442ccb3b16508bd1ee29",
  2495 + "reference": "1bd39355c90a4ae241f0442ccb3b16508bd1ee29",
2494 2496 "shasum": ""
2495 2497 },
2496 2498 "require": {
2497   - "illuminate/config": "~5.0",
2498   - "illuminate/console": "~5.0",
2499   - "illuminate/database": "~5.0",
2500   - "illuminate/filesystem": "~5.0",
2501   - "illuminate/http": "~5.0",
2502   - "illuminate/pagination": "~5.0",
2503   - "illuminate/support": "~5.0",
  2499 + "illuminate/config": "~5.0|~6.0",
  2500 + "illuminate/console": "~5.0|~6.0",
  2501 + "illuminate/database": "~5.0|~6.0",
  2502 + "illuminate/filesystem": "~5.0|~6.0",
  2503 + "illuminate/http": "~5.0|~6.0",
  2504 + "illuminate/pagination": "~5.0|~6.0",
  2505 + "illuminate/support": "~5.0|~6.0",
2504 2506 "prettus/laravel-validation": "1.1.*"
2505 2507 },
2506 2508 "suggest": {
... ... @@ -2529,10 +2531,12 @@
2529 2531 {
2530 2532 "name": "Anderson Andrade",
2531 2533 "email": "contato@andersonandra.de",
  2534 + "homepage": "http://andersonandra.de",
2532 2535 "role": "Developer"
2533 2536 }
2534 2537 ],
2535 2538 "description": "Laravel 5 - Repositories to the database layer",
  2539 + "homepage": "http://andersao.github.io/l5-repository",
2536 2540 "keywords": [
2537 2541 "cache",
2538 2542 "eloquent",
... ... @@ -2540,7 +2544,7 @@
2540 2544 "model",
2541 2545 "repository"
2542 2546 ],
2543   - "time": "2018-01-27T15:53:20+00:00"
  2547 + "time": "2019-08-30T13:49:44+00:00"
2544 2548 },
2545 2549 {
2546 2550 "name": "prettus/laravel-validation",
... ... @@ -3132,16 +3136,16 @@
3132 3136 },
3133 3137 {
3134 3138 "name": "symfony/console",
3135   - "version": "v4.3.3",
  3139 + "version": "v4.3.4",
3136 3140 "source": {
3137 3141 "type": "git",
3138 3142 "url": "https://github.com/symfony/console.git",
3139   - "reference": "8b0ae5742ce9aaa8b0075665862c1ca397d1c1d9"
  3143 + "reference": "de63799239b3881b8a08f8481b22348f77ed7b36"
3140 3144 },
3141 3145 "dist": {
3142 3146 "type": "zip",
3143   - "url": "https://api.github.com/repos/symfony/console/zipball/8b0ae5742ce9aaa8b0075665862c1ca397d1c1d9",
3144   - "reference": "8b0ae5742ce9aaa8b0075665862c1ca397d1c1d9",
  3147 + "url": "https://api.github.com/repos/symfony/console/zipball/de63799239b3881b8a08f8481b22348f77ed7b36",
  3148 + "reference": "de63799239b3881b8a08f8481b22348f77ed7b36",
3145 3149 "shasum": ""
3146 3150 },
3147 3151 "require": {
... ... @@ -3203,20 +3207,20 @@
3203 3207 ],
3204 3208 "description": "Symfony Console Component",
3205 3209 "homepage": "https://symfony.com",
3206   - "time": "2019-07-24T17:13:59+00:00"
  3210 + "time": "2019-08-26T08:26:39+00:00"
3207 3211 },
3208 3212 {
3209 3213 "name": "symfony/css-selector",
3210   - "version": "v4.3.3",
  3214 + "version": "v4.3.4",
3211 3215 "source": {
3212 3216 "type": "git",
3213 3217 "url": "https://github.com/symfony/css-selector.git",
3214   - "reference": "105c98bb0c5d8635bea056135304bd8edcc42b4d"
  3218 + "reference": "c6e5e2a00db768c92c3ae131532af4e1acc7bd03"
3215 3219 },
3216 3220 "dist": {
3217 3221 "type": "zip",
3218   - "url": "https://api.github.com/repos/symfony/css-selector/zipball/105c98bb0c5d8635bea056135304bd8edcc42b4d",
3219   - "reference": "105c98bb0c5d8635bea056135304bd8edcc42b4d",
  3222 + "url": "https://api.github.com/repos/symfony/css-selector/zipball/c6e5e2a00db768c92c3ae131532af4e1acc7bd03",
  3223 + "reference": "c6e5e2a00db768c92c3ae131532af4e1acc7bd03",
3220 3224 "shasum": ""
3221 3225 },
3222 3226 "require": {
... ... @@ -3256,20 +3260,20 @@
3256 3260 ],
3257 3261 "description": "Symfony CssSelector Component",
3258 3262 "homepage": "https://symfony.com",
3259   - "time": "2019-01-16T21:53:39+00:00"
  3263 + "time": "2019-08-20T14:07:54+00:00"
3260 3264 },
3261 3265 {
3262 3266 "name": "symfony/debug",
3263   - "version": "v4.3.3",
  3267 + "version": "v4.3.4",
3264 3268 "source": {
3265 3269 "type": "git",
3266 3270 "url": "https://github.com/symfony/debug.git",
3267   - "reference": "527887c3858a2462b0137662c74837288b998ee3"
  3271 + "reference": "afcdea44a2e399c1e4b52246ec8d54c715393ced"
3268 3272 },
3269 3273 "dist": {
3270 3274 "type": "zip",
3271   - "url": "https://api.github.com/repos/symfony/debug/zipball/527887c3858a2462b0137662c74837288b998ee3",
3272   - "reference": "527887c3858a2462b0137662c74837288b998ee3",
  3275 + "url": "https://api.github.com/repos/symfony/debug/zipball/afcdea44a2e399c1e4b52246ec8d54c715393ced",
  3276 + "reference": "afcdea44a2e399c1e4b52246ec8d54c715393ced",
3273 3277 "shasum": ""
3274 3278 },
3275 3279 "require": {
... ... @@ -3312,20 +3316,20 @@
3312 3316 ],
3313 3317 "description": "Symfony Debug Component",
3314 3318 "homepage": "https://symfony.com",
3315   - "time": "2019-07-23T11:21:36+00:00"
  3319 + "time": "2019-08-20T14:27:59+00:00"
3316 3320 },
3317 3321 {
3318 3322 "name": "symfony/event-dispatcher",
3319   - "version": "v4.3.3",
  3323 + "version": "v4.3.4",
3320 3324 "source": {
3321 3325 "type": "git",
3322 3326 "url": "https://github.com/symfony/event-dispatcher.git",
3323   - "reference": "212b020949331b6531250584531363844b34a94e"
  3327 + "reference": "429d0a1451d4c9c4abe1959b2986b88794b9b7d2"
3324 3328 },
3325 3329 "dist": {
3326 3330 "type": "zip",
3327   - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/212b020949331b6531250584531363844b34a94e",
3328   - "reference": "212b020949331b6531250584531363844b34a94e",
  3331 + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/429d0a1451d4c9c4abe1959b2986b88794b9b7d2",
  3332 + "reference": "429d0a1451d4c9c4abe1959b2986b88794b9b7d2",
3329 3333 "shasum": ""
3330 3334 },
3331 3335 "require": {
... ... @@ -3382,7 +3386,7 @@
3382 3386 ],
3383 3387 "description": "Symfony EventDispatcher Component",
3384 3388 "homepage": "https://symfony.com",
3385   - "time": "2019-06-27T06:42:14+00:00"
  3389 + "time": "2019-08-26T08:55:16+00:00"
3386 3390 },
3387 3391 {
3388 3392 "name": "symfony/event-dispatcher-contracts",
... ... @@ -3444,16 +3448,16 @@
3444 3448 },
3445 3449 {
3446 3450 "name": "symfony/finder",
3447   - "version": "v4.3.3",
  3451 + "version": "v4.3.4",
3448 3452 "source": {
3449 3453 "type": "git",
3450 3454 "url": "https://github.com/symfony/finder.git",
3451   - "reference": "9638d41e3729459860bb96f6247ccb61faaa45f2"
  3455 + "reference": "86c1c929f0a4b24812e1eb109262fc3372c8e9f2"
3452 3456 },
3453 3457 "dist": {
3454 3458 "type": "zip",
3455   - "url": "https://api.github.com/repos/symfony/finder/zipball/9638d41e3729459860bb96f6247ccb61faaa45f2",
3456   - "reference": "9638d41e3729459860bb96f6247ccb61faaa45f2",
  3459 + "url": "https://api.github.com/repos/symfony/finder/zipball/86c1c929f0a4b24812e1eb109262fc3372c8e9f2",
  3460 + "reference": "86c1c929f0a4b24812e1eb109262fc3372c8e9f2",
3457 3461 "shasum": ""
3458 3462 },
3459 3463 "require": {
... ... @@ -3489,20 +3493,20 @@
3489 3493 ],
3490 3494 "description": "Symfony Finder Component",
3491 3495 "homepage": "https://symfony.com",
3492   - "time": "2019-06-28T13:16:30+00:00"
  3496 + "time": "2019-08-14T12:26:46+00:00"
3493 3497 },
3494 3498 {
3495 3499 "name": "symfony/http-foundation",
3496   - "version": "v4.3.3",
  3500 + "version": "v4.3.4",
3497 3501 "source": {
3498 3502 "type": "git",
3499 3503 "url": "https://github.com/symfony/http-foundation.git",
3500   - "reference": "8b778ee0c27731105fbf1535f51793ad1ae0ba2b"
  3504 + "reference": "d804bea118ff340a12e22a79f9c7e7eb56b35adc"
3501 3505 },
3502 3506 "dist": {
3503 3507 "type": "zip",
3504   - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/8b778ee0c27731105fbf1535f51793ad1ae0ba2b",
3505   - "reference": "8b778ee0c27731105fbf1535f51793ad1ae0ba2b",
  3508 + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/d804bea118ff340a12e22a79f9c7e7eb56b35adc",
  3509 + "reference": "d804bea118ff340a12e22a79f9c7e7eb56b35adc",
3506 3510 "shasum": ""
3507 3511 },
3508 3512 "require": {
... ... @@ -3544,20 +3548,20 @@
3544 3548 ],
3545 3549 "description": "Symfony HttpFoundation Component",
3546 3550 "homepage": "https://symfony.com",
3547   - "time": "2019-07-23T11:21:36+00:00"
  3551 + "time": "2019-08-26T08:55:16+00:00"
3548 3552 },
3549 3553 {
3550 3554 "name": "symfony/http-kernel",
3551   - "version": "v4.3.3",
  3555 + "version": "v4.3.4",
3552 3556 "source": {
3553 3557 "type": "git",
3554 3558 "url": "https://github.com/symfony/http-kernel.git",
3555   - "reference": "a414548d236ddd8fa3df52367d583e82339c5e95"
  3559 + "reference": "5e0fc71be03d52cd00c423061cfd300bd6f92a52"
3556 3560 },
3557 3561 "dist": {
3558 3562 "type": "zip",
3559   - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/a414548d236ddd8fa3df52367d583e82339c5e95",
3560   - "reference": "a414548d236ddd8fa3df52367d583e82339c5e95",
  3563 + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/5e0fc71be03d52cd00c423061cfd300bd6f92a52",
  3564 + "reference": "5e0fc71be03d52cd00c423061cfd300bd6f92a52",
3561 3565 "shasum": ""
3562 3566 },
3563 3567 "require": {
... ... @@ -3636,20 +3640,20 @@
3636 3640 ],
3637 3641 "description": "Symfony HttpKernel Component",
3638 3642 "homepage": "https://symfony.com",
3639   - "time": "2019-07-28T07:10:23+00:00"
  3643 + "time": "2019-08-26T16:47:42+00:00"
3640 3644 },
3641 3645 {
3642 3646 "name": "symfony/mime",
3643   - "version": "v4.3.3",
  3647 + "version": "v4.3.4",
3644 3648 "source": {
3645 3649 "type": "git",
3646 3650 "url": "https://github.com/symfony/mime.git",
3647   - "reference": "6b7148029b1dd5eda1502064f06d01357b7b2d8b"
  3651 + "reference": "987a05df1c6ac259b34008b932551353f4f408df"
3648 3652 },
3649 3653 "dist": {
3650 3654 "type": "zip",
3651   - "url": "https://api.github.com/repos/symfony/mime/zipball/6b7148029b1dd5eda1502064f06d01357b7b2d8b",
3652   - "reference": "6b7148029b1dd5eda1502064f06d01357b7b2d8b",
  3655 + "url": "https://api.github.com/repos/symfony/mime/zipball/987a05df1c6ac259b34008b932551353f4f408df",
  3656 + "reference": "987a05df1c6ac259b34008b932551353f4f408df",
3653 3657 "shasum": ""
3654 3658 },
3655 3659 "require": {
... ... @@ -3658,7 +3662,7 @@
3658 3662 "symfony/polyfill-mbstring": "^1.0"
3659 3663 },
3660 3664 "require-dev": {
3661   - "egulias/email-validator": "^2.0",
  3665 + "egulias/email-validator": "^2.1.10",
3662 3666 "symfony/dependency-injection": "~3.4|^4.1"
3663 3667 },
3664 3668 "type": "library",
... ... @@ -3695,7 +3699,7 @@
3695 3699 "mime",
3696 3700 "mime-type"
3697 3701 ],
3698   - "time": "2019-07-19T16:21:19+00:00"
  3702 + "time": "2019-08-22T08:16:11+00:00"
3699 3703 },
3700 3704 {
3701 3705 "name": "symfony/polyfill-ctype",
... ... @@ -4050,16 +4054,16 @@
4050 4054 },
4051 4055 {
4052 4056 "name": "symfony/process",
4053   - "version": "v4.3.3",
  4057 + "version": "v4.3.4",
4054 4058 "source": {
4055 4059 "type": "git",
4056 4060 "url": "https://github.com/symfony/process.git",
4057   - "reference": "856d35814cf287480465bb7a6c413bb7f5f5e69c"
  4061 + "reference": "e89969c00d762349f078db1128506f7f3dcc0d4a"
4058 4062 },
4059 4063 "dist": {
4060 4064 "type": "zip",
4061   - "url": "https://api.github.com/repos/symfony/process/zipball/856d35814cf287480465bb7a6c413bb7f5f5e69c",
4062   - "reference": "856d35814cf287480465bb7a6c413bb7f5f5e69c",
  4065 + "url": "https://api.github.com/repos/symfony/process/zipball/e89969c00d762349f078db1128506f7f3dcc0d4a",
  4066 + "reference": "e89969c00d762349f078db1128506f7f3dcc0d4a",
4063 4067 "shasum": ""
4064 4068 },
4065 4069 "require": {
... ... @@ -4095,20 +4099,20 @@
4095 4099 ],
4096 4100 "description": "Symfony Process Component",
4097 4101 "homepage": "https://symfony.com",
4098   - "time": "2019-05-30T16:10:05+00:00"
  4102 + "time": "2019-08-26T08:26:39+00:00"
4099 4103 },
4100 4104 {
4101 4105 "name": "symfony/routing",
4102   - "version": "v4.3.3",
  4106 + "version": "v4.3.4",
4103 4107 "source": {
4104 4108 "type": "git",
4105 4109 "url": "https://github.com/symfony/routing.git",
4106   - "reference": "a88c47a5861549f5dc1197660818084c3b67d773"
  4110 + "reference": "ff1049f6232dc5b6023b1ff1c6de56f82bcd264f"
4107 4111 },
4108 4112 "dist": {
4109 4113 "type": "zip",
4110   - "url": "https://api.github.com/repos/symfony/routing/zipball/a88c47a5861549f5dc1197660818084c3b67d773",
4111   - "reference": "a88c47a5861549f5dc1197660818084c3b67d773",
  4114 + "url": "https://api.github.com/repos/symfony/routing/zipball/ff1049f6232dc5b6023b1ff1c6de56f82bcd264f",
  4115 + "reference": "ff1049f6232dc5b6023b1ff1c6de56f82bcd264f",
4112 4116 "shasum": ""
4113 4117 },
4114 4118 "require": {
... ... @@ -4171,20 +4175,20 @@
4171 4175 "uri",
4172 4176 "url"
4173 4177 ],
4174   - "time": "2019-07-23T14:43:56+00:00"
  4178 + "time": "2019-08-26T08:26:39+00:00"
4175 4179 },
4176 4180 {
4177 4181 "name": "symfony/service-contracts",
4178   - "version": "v1.1.5",
  4182 + "version": "v1.1.6",
4179 4183 "source": {
4180 4184 "type": "git",
4181 4185 "url": "https://github.com/symfony/service-contracts.git",
4182   - "reference": "f391a00de78ec7ec8cf5cdcdae59ec7b883edb8d"
  4186 + "reference": "ea7263d6b6d5f798b56a45a5b8d686725f2719a3"
4183 4187 },
4184 4188 "dist": {
4185 4189 "type": "zip",
4186   - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f391a00de78ec7ec8cf5cdcdae59ec7b883edb8d",
4187   - "reference": "f391a00de78ec7ec8cf5cdcdae59ec7b883edb8d",
  4190 + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/ea7263d6b6d5f798b56a45a5b8d686725f2719a3",
  4191 + "reference": "ea7263d6b6d5f798b56a45a5b8d686725f2719a3",
4188 4192 "shasum": ""
4189 4193 },
4190 4194 "require": {
... ... @@ -4229,26 +4233,26 @@
4229 4233 "interoperability",
4230 4234 "standards"
4231 4235 ],
4232   - "time": "2019-06-13T11:15:36+00:00"
  4236 + "time": "2019-08-20T14:44:19+00:00"
4233 4237 },
4234 4238 {
4235 4239 "name": "symfony/translation",
4236   - "version": "v4.3.3",
  4240 + "version": "v4.3.4",
4237 4241 "source": {
4238 4242 "type": "git",
4239 4243 "url": "https://github.com/symfony/translation.git",
4240   - "reference": "4e3e39cc485304f807622bdc64938e4633396406"
  4244 + "reference": "28498169dd334095fa981827992f3a24d50fed0f"
4241 4245 },
4242 4246 "dist": {
4243 4247 "type": "zip",
4244   - "url": "https://api.github.com/repos/symfony/translation/zipball/4e3e39cc485304f807622bdc64938e4633396406",
4245   - "reference": "4e3e39cc485304f807622bdc64938e4633396406",
  4248 + "url": "https://api.github.com/repos/symfony/translation/zipball/28498169dd334095fa981827992f3a24d50fed0f",
  4249 + "reference": "28498169dd334095fa981827992f3a24d50fed0f",
4246 4250 "shasum": ""
4247 4251 },
4248 4252 "require": {
4249 4253 "php": "^7.1.3",
4250 4254 "symfony/polyfill-mbstring": "~1.0",
4251   - "symfony/translation-contracts": "^1.1.2"
  4255 + "symfony/translation-contracts": "^1.1.6"
4252 4256 },
4253 4257 "conflict": {
4254 4258 "symfony/config": "<3.4",
... ... @@ -4305,20 +4309,20 @@
4305 4309 ],
4306 4310 "description": "Symfony Translation Component",
4307 4311 "homepage": "https://symfony.com",
4308   - "time": "2019-07-18T10:34:59+00:00"
  4312 + "time": "2019-08-26T08:55:16+00:00"
4309 4313 },
4310 4314 {
4311 4315 "name": "symfony/translation-contracts",
4312   - "version": "v1.1.5",
  4316 + "version": "v1.1.6",
4313 4317 "source": {
4314 4318 "type": "git",
4315 4319 "url": "https://github.com/symfony/translation-contracts.git",
4316   - "reference": "cb4b18ad7b92a26e83b65dde940fab78339e6f3c"
  4320 + "reference": "325b17c24f3ee23cbecfa63ba809c6d89b5fa04a"
4317 4321 },
4318 4322 "dist": {
4319 4323 "type": "zip",
4320   - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/cb4b18ad7b92a26e83b65dde940fab78339e6f3c",
4321   - "reference": "cb4b18ad7b92a26e83b65dde940fab78339e6f3c",
  4324 + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/325b17c24f3ee23cbecfa63ba809c6d89b5fa04a",
  4325 + "reference": "325b17c24f3ee23cbecfa63ba809c6d89b5fa04a",
4322 4326 "shasum": ""
4323 4327 },
4324 4328 "require": {
... ... @@ -4362,20 +4366,20 @@
4362 4366 "interoperability",
4363 4367 "standards"
4364 4368 ],
4365   - "time": "2019-06-13T11:15:36+00:00"
  4369 + "time": "2019-08-02T12:15:04+00:00"
4366 4370 },
4367 4371 {
4368 4372 "name": "symfony/var-dumper",
4369   - "version": "v4.3.3",
  4373 + "version": "v4.3.4",
4370 4374 "source": {
4371 4375 "type": "git",
4372 4376 "url": "https://github.com/symfony/var-dumper.git",
4373   - "reference": "e4110b992d2cbe198d7d3b244d079c1c58761d07"
  4377 + "reference": "641043e0f3e615990a0f29479f9c117e8a6698c6"
4374 4378 },
4375 4379 "dist": {
4376 4380 "type": "zip",
4377   - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/e4110b992d2cbe198d7d3b244d079c1c58761d07",
4378   - "reference": "e4110b992d2cbe198d7d3b244d079c1c58761d07",
  4381 + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/641043e0f3e615990a0f29479f9c117e8a6698c6",
  4382 + "reference": "641043e0f3e615990a0f29479f9c117e8a6698c6",
4379 4383 "shasum": ""
4380 4384 },
4381 4385 "require": {
... ... @@ -4438,7 +4442,7 @@
4438 4442 "debug",
4439 4443 "dump"
4440 4444 ],
4441   - "time": "2019-07-27T06:42:46+00:00"
  4445 + "time": "2019-08-26T08:26:39+00:00"
4442 4446 },
4443 4447 {
4444 4448 "name": "tijsverkoyen/css-to-inline-styles",
... ... @@ -4540,16 +4544,16 @@
4540 4544 },
4541 4545 {
4542 4546 "name": "vlucas/phpdotenv",
4543   - "version": "v3.4.0",
  4547 + "version": "v3.5.0",
4544 4548 "source": {
4545 4549 "type": "git",
4546 4550 "url": "https://github.com/vlucas/phpdotenv.git",
4547   - "reference": "5084b23845c24dbff8ac6c204290c341e4776c92"
  4551 + "reference": "95cb0fa6c025f7f0db7fc60f81e9fb231eb2d222"
4548 4552 },
4549 4553 "dist": {
4550 4554 "type": "zip",
4551   - "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/5084b23845c24dbff8ac6c204290c341e4776c92",
4552   - "reference": "5084b23845c24dbff8ac6c204290c341e4776c92",
  4555 + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/95cb0fa6c025f7f0db7fc60f81e9fb231eb2d222",
  4556 + "reference": "95cb0fa6c025f7f0db7fc60f81e9fb231eb2d222",
4553 4557 "shasum": ""
4554 4558 },
4555 4559 "require": {
... ... @@ -4563,7 +4567,7 @@
4563 4567 "type": "library",
4564 4568 "extra": {
4565 4569 "branch-alias": {
4566   - "dev-master": "3.4-dev"
  4570 + "dev-master": "3.5-dev"
4567 4571 }
4568 4572 },
4569 4573 "autoload": {
... ... @@ -4577,9 +4581,14 @@
4577 4581 ],
4578 4582 "authors": [
4579 4583 {
  4584 + "name": "Graham Campbell",
  4585 + "email": "graham@alt-three.com",
  4586 + "homepage": "https://gjcampbell.co.uk/"
  4587 + },
  4588 + {
4580 4589 "name": "Vance Lucas",
4581 4590 "email": "vance@vancelucas.com",
4582   - "homepage": "http://www.vancelucas.com"
  4591 + "homepage": "https://vancelucas.com/"
4583 4592 }
4584 4593 ],
4585 4594 "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.",
... ... @@ -4588,22 +4597,22 @@
4588 4597 "env",
4589 4598 "environment"
4590 4599 ],
4591   - "time": "2019-06-15T22:40:20+00:00"
  4600 + "time": "2019-08-27T17:00:38+00:00"
4592 4601 }
4593 4602 ],
4594 4603 "packages-dev": [
4595 4604 {
4596 4605 "name": "barryvdh/laravel-debugbar",
4597   - "version": "v3.2.7",
  4606 + "version": "v3.2.8",
4598 4607 "source": {
4599 4608 "type": "git",
4600 4609 "url": "https://github.com/barryvdh/laravel-debugbar.git",
4601   - "reference": "8794e7a3b7f3a0e7222bcd088f5f44b2b6ff8e61"
  4610 + "reference": "18208d64897ab732f6c04a19b319fe8f1d57a9c0"
4602 4611 },
4603 4612 "dist": {
4604 4613 "type": "zip",
4605   - "url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/8794e7a3b7f3a0e7222bcd088f5f44b2b6ff8e61",
4606   - "reference": "8794e7a3b7f3a0e7222bcd088f5f44b2b6ff8e61",
  4614 + "url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/18208d64897ab732f6c04a19b319fe8f1d57a9c0",
  4615 + "reference": "18208d64897ab732f6c04a19b319fe8f1d57a9c0",
4607 4616 "shasum": ""
4608 4617 },
4609 4618 "require": {
... ... @@ -4658,7 +4667,7 @@
4658 4667 "profiler",
4659 4668 "webprofiler"
4660 4669 ],
4661   - "time": "2019-08-22T14:29:54+00:00"
  4670 + "time": "2019-08-29T07:01:03+00:00"
4662 4671 },
4663 4672 {
4664 4673 "name": "beyondcode/laravel-dump-server",
... ... @@ -5012,16 +5021,16 @@
5012 5021 },
5013 5022 {
5014 5023 "name": "friendsofphp/php-cs-fixer",
5015   - "version": "v2.15.1",
  5024 + "version": "v2.15.3",
5016 5025 "source": {
5017 5026 "type": "git",
5018 5027 "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git",
5019   - "reference": "20064511ab796593a3990669eff5f5b535001f7c"
  5028 + "reference": "705490b0f282f21017d73561e9498d2b622ee34c"
5020 5029 },
5021 5030 "dist": {
5022 5031 "type": "zip",
5023   - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/20064511ab796593a3990669eff5f5b535001f7c",
5024   - "reference": "20064511ab796593a3990669eff5f5b535001f7c",
  5032 + "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/705490b0f282f21017d73561e9498d2b622ee34c",
  5033 + "reference": "705490b0f282f21017d73561e9498d2b622ee34c",
5025 5034 "shasum": ""
5026 5035 },
5027 5036 "require": {
... ... @@ -5051,9 +5060,10 @@
5051 5060 "php-cs-fixer/accessible-object": "^1.0",
5052 5061 "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.1",
5053 5062 "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.1",
5054   - "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1",
  5063 + "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.1",
5055 5064 "phpunitgoodpractices/traits": "^1.8",
5056   - "symfony/phpunit-bridge": "^4.3"
  5065 + "symfony/phpunit-bridge": "^4.3",
  5066 + "symfony/yaml": "^3.0 || ^4.0"
5057 5067 },
5058 5068 "suggest": {
5059 5069 "ext-mbstring": "For handling non-UTF8 characters in cache signature.",
... ... @@ -5087,16 +5097,16 @@
5087 5097 ],
5088 5098 "authors": [
5089 5099 {
5090   - "name": "Dariusz Rumiński",
5091   - "email": "dariusz.ruminski@gmail.com"
5092   - },
5093   - {
5094 5100 "name": "Fabien Potencier",
5095 5101 "email": "fabien@symfony.com"
  5102 + },
  5103 + {
  5104 + "name": "Dariusz Rumiński",
  5105 + "email": "dariusz.ruminski@gmail.com"
5096 5106 }
5097 5107 ],
5098 5108 "description": "A tool to automatically fix PHP code style",
5099   - "time": "2019-06-01T10:32:12+00:00"
  5109 + "time": "2019-08-31T12:51:54+00:00"
5100 5110 },
5101 5111 {
5102 5112 "name": "fzaninotto/faker",
... ... @@ -5263,32 +5273,32 @@
5263 5273 },
5264 5274 {
5265 5275 "name": "laravel/telescope",
5266   - "version": "v2.0.6",
  5276 + "version": "v2.1",
5267 5277 "source": {
5268 5278 "type": "git",
5269 5279 "url": "https://github.com/laravel/telescope.git",
5270   - "reference": "61b415ea2401fe659ee35fa809908628aa08bf07"
  5280 + "reference": "d9c5c53d3a0c60dcd4ef3777884d0cf368eb3e6f"
5271 5281 },
5272 5282 "dist": {
5273 5283 "type": "zip",
5274   - "url": "https://api.github.com/repos/laravel/telescope/zipball/61b415ea2401fe659ee35fa809908628aa08bf07",
5275   - "reference": "61b415ea2401fe659ee35fa809908628aa08bf07",
  5284 + "url": "https://api.github.com/repos/laravel/telescope/zipball/d9c5c53d3a0c60dcd4ef3777884d0cf368eb3e6f",
  5285 + "reference": "d9c5c53d3a0c60dcd4ef3777884d0cf368eb3e6f",
5276 5286 "shasum": ""
5277 5287 },
5278 5288 "require": {
5279 5289 "ext-json": "*",
5280   - "laravel/framework": "~5.8.0|~5.9.0",
  5290 + "laravel/framework": "~5.8.0|^6.0|^7.0",
5281 5291 "moontoast/math": "^1.1",
5282 5292 "php": "^7.1.3",
5283 5293 "symfony/var-dumper": "^4.1"
5284 5294 },
5285 5295 "require-dev": {
5286   - "orchestra/testbench": "~3.7"
  5296 + "orchestra/testbench": "^3.8|^4.0|^5.0"
5287 5297 },
5288 5298 "type": "library",
5289 5299 "extra": {
5290 5300 "branch-alias": {
5291   - "dev-master": "3.0-dev"
  5301 + "dev-master": "2.0-dev"
5292 5302 },
5293 5303 "laravel": {
5294 5304 "providers": [
... ... @@ -5321,7 +5331,7 @@
5321 5331 "laravel",
5322 5332 "monitoring"
5323 5333 ],
5324   - "time": "2019-07-12T06:52:24+00:00"
  5334 + "time": "2019-08-30T11:58:27+00:00"
5325 5335 },
5326 5336 {
5327 5337 "name": "maximebf/debugbar",
... ... @@ -6882,16 +6892,16 @@
6882 6892 },
6883 6893 {
6884 6894 "name": "symfony/filesystem",
6885   - "version": "v4.3.3",
  6895 + "version": "v4.3.4",
6886 6896 "source": {
6887 6897 "type": "git",
6888 6898 "url": "https://github.com/symfony/filesystem.git",
6889   - "reference": "b9896d034463ad6fd2bf17e2bf9418caecd6313d"
  6899 + "reference": "9abbb7ef96a51f4d7e69627bc6f63307994e4263"
6890 6900 },
6891 6901 "dist": {
6892 6902 "type": "zip",
6893   - "url": "https://api.github.com/repos/symfony/filesystem/zipball/b9896d034463ad6fd2bf17e2bf9418caecd6313d",
6894   - "reference": "b9896d034463ad6fd2bf17e2bf9418caecd6313d",
  6903 + "url": "https://api.github.com/repos/symfony/filesystem/zipball/9abbb7ef96a51f4d7e69627bc6f63307994e4263",
  6904 + "reference": "9abbb7ef96a51f4d7e69627bc6f63307994e4263",
6895 6905 "shasum": ""
6896 6906 },
6897 6907 "require": {
... ... @@ -6928,20 +6938,20 @@
6928 6938 ],
6929 6939 "description": "Symfony Filesystem Component",
6930 6940 "homepage": "https://symfony.com",
6931   - "time": "2019-06-23T08:51:25+00:00"
  6941 + "time": "2019-08-20T14:07:54+00:00"
6932 6942 },
6933 6943 {
6934 6944 "name": "symfony/options-resolver",
6935   - "version": "v4.3.3",
  6945 + "version": "v4.3.4",
6936 6946 "source": {
6937 6947 "type": "git",
6938 6948 "url": "https://github.com/symfony/options-resolver.git",
6939   - "reference": "40762ead607c8f792ee4516881369ffa553fee6f"
  6949 + "reference": "81c2e120522a42f623233968244baebd6b36cb6a"
6940 6950 },
6941 6951 "dist": {
6942 6952 "type": "zip",
6943   - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/40762ead607c8f792ee4516881369ffa553fee6f",
6944   - "reference": "40762ead607c8f792ee4516881369ffa553fee6f",
  6953 + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/81c2e120522a42f623233968244baebd6b36cb6a",
  6954 + "reference": "81c2e120522a42f623233968244baebd6b36cb6a",
6945 6955 "shasum": ""
6946 6956 },
6947 6957 "require": {
... ... @@ -6982,7 +6992,7 @@
6982 6992 "configuration",
6983 6993 "options"
6984 6994 ],
6985   - "time": "2019-06-13T11:01:17+00:00"
  6995 + "time": "2019-08-08T09:29:19+00:00"
6986 6996 },
6987 6997 {
6988 6998 "name": "symfony/polyfill-php70",
... ... @@ -7045,16 +7055,16 @@
7045 7055 },
7046 7056 {
7047 7057 "name": "symfony/stopwatch",
7048   - "version": "v4.3.3",
  7058 + "version": "v4.3.4",
7049 7059 "source": {
7050 7060 "type": "git",
7051 7061 "url": "https://github.com/symfony/stopwatch.git",
7052   - "reference": "6b100e9309e8979cf1978ac1778eb155c1f7d93b"
  7062 + "reference": "1e4ff456bd625be5032fac9be4294e60442e9b71"
7053 7063 },
7054 7064 "dist": {
7055 7065 "type": "zip",
7056   - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/6b100e9309e8979cf1978ac1778eb155c1f7d93b",
7057   - "reference": "6b100e9309e8979cf1978ac1778eb155c1f7d93b",
  7066 + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/1e4ff456bd625be5032fac9be4294e60442e9b71",
  7067 + "reference": "1e4ff456bd625be5032fac9be4294e60442e9b71",
7058 7068 "shasum": ""
7059 7069 },
7060 7070 "require": {
... ... @@ -7091,7 +7101,7 @@
7091 7101 ],
7092 7102 "description": "Symfony Stopwatch Component",
7093 7103 "homepage": "https://symfony.com",
7094   - "time": "2019-05-27T08:16:38+00:00"
  7104 + "time": "2019-08-07T11:52:19+00:00"
7095 7105 },
7096 7106 {
7097 7107 "name": "theseer/tokenizer",
... ...
config/assets.php
... ... @@ -14,7 +14,7 @@ return [
14 14 |
15 15 */
16 16  
17   - 'version' => '0.0.31',
  17 + 'version' => '0.0.33',
18 18  
19 19 /*
20 20 |--------------------------------------------------------------------------
... ...
database/factories/CityFactory.php
1 1 <?php
2 2  
  3 +use App\City;
3 4 use App\State;
4 5 use Faker\Generator as Faker;
  6 +use Illuminate\Database\Eloquent\Factory;
5 7  
6   -$factory->define(App\City::class, function (Faker $faker) {
  8 +/** @var Factory $factory */
  9 +
  10 +$factory->define(City::class, function (Faker $faker) {
7 11 return [
8 12 'state_id' => function () {
9 13  
... ...
database/factories/CountryFactory.php
... ... @@ -2,6 +2,9 @@
2 2  
3 3 use App\Country;
4 4 use Faker\Generator as Faker;
  5 +use Illuminate\Database\Eloquent\Factory;
  6 +
  7 +/** @var Factory $factory */
5 8  
6 9 $factory->define(Country::class, function (Faker $faker) {
7 10 return [
... ...
database/factories/DistrictFactory.php
1 1 <?php
2 2  
3 3 use App\City;
  4 +use App\District;
4 5 use Faker\Generator as Faker;
  6 +use Illuminate\Database\Eloquent\Factory;
5 7  
6   -$factory->define(App\District::class, function (Faker $faker) {
  8 +/** @var Factory $factory */
  9 +
  10 +$factory->define(District::class, function (Faker $faker) {
7 11 return [
8 12 'city_id' => function () {
9 13  
... ...
database/factories/Enrollment.php
1 1 <?php
2 2  
  3 +use App\Models\LegacySchoolClass;
  4 +use App\Models\Registration;
3 5 use Faker\Generator as Faker;
4 6 use App\Models\Enrollment;
  7 +use Illuminate\Database\Eloquent\Factory;
  8 +
  9 +/** @var Factory $factory */
5 10  
6 11 $factory->define(Enrollment::class, function (Faker $faker) {
7 12 return [
8   - 'ref_cod_matricula' => factory(\App\Models\Registration::class)->create(),
9   - 'ref_cod_turma' => factory(\App\Models\LegacySchoolClass::class)->create(),
  13 + 'ref_cod_matricula' => factory(Registration::class)->create(),
  14 + 'ref_cod_turma' => factory(LegacySchoolClass::class)->create(),
10 15 'sequencial' => 0,
11 16 'ref_usuario_cad' => 1,
12 17 'data_cadastro' => now(),
... ...
database/factories/LegacyAcademicYearStageFactory.php
... ... @@ -4,6 +4,9 @@ use App\Models\LegacyAcademicYearStage;
4 4 use App\Models\LegacySchoolAcademicYear;
5 5 use App\Models\LegacyStageType;
6 6 use Faker\Generator as Faker;
  7 +use Illuminate\Database\Eloquent\Factory;
  8 +
  9 +/** @var Factory $factory */
7 10  
8 11 $factory->define(LegacyAcademicYearStage::class, function (Faker $faker) {
9 12  
... ...
database/factories/LegacyAverageFormulaFactory.php
... ... @@ -3,6 +3,9 @@
3 3 use App\Models\LegacyAverageFormula;
4 4 use App\Models\LegacyInstitution;
5 5 use Faker\Generator as Faker;
  6 +use Illuminate\Database\Eloquent\Factory;
  7 +
  8 +/** @var Factory $factory */
6 9  
7 10 $factory->define(LegacyAverageFormula::class, function (Faker $faker) {
8 11 return [
... ...
database/factories/LegacyCourseFactory.php
... ... @@ -6,6 +6,9 @@ use App\Models\LegacyEducationType;
6 6 use App\Models\LegacyInstitution;
7 7 use App\Models\LegacyRegimeType;
8 8 use Faker\Generator as Faker;
  9 +use Illuminate\Database\Eloquent\Factory;
  10 +
  11 +/** @var Factory $factory */
9 12  
10 13 $factory->define(LegacyCourse::class, function (Faker $faker) {
11 14 return [
... ...
database/factories/LegacyDisciplineFactory.php
... ... @@ -4,6 +4,9 @@ use App\Models\LegacyDiscipline;
4 4 use App\Models\LegacyInstitution;
5 5 use App\Models\LegacyKnowledgeArea;
6 6 use Faker\Generator as Faker;
  7 +use Illuminate\Database\Eloquent\Factory;
  8 +
  9 +/** @var Factory $factory */
7 10  
8 11 $factory->define(LegacyDiscipline::class, function (Faker $faker) {
9 12 return [
... ...
database/factories/LegacyDisciplineScoreFactory.php
... ... @@ -4,6 +4,9 @@ use App\Models\LegacyDiscipline;
4 4 use App\Models\LegacyDisciplineScore;
5 5 use App\Models\LegacyRegistrationScore;
6 6 use Faker\Generator as Faker;
  7 +use Illuminate\Database\Eloquent\Factory;
  8 +
  9 +/** @var Factory $factory */
7 10  
8 11 $factory->define(LegacyDisciplineScore::class, function (Faker $faker) {
9 12 return [
... ...
database/factories/LegacyEducationLevelFactory.php
... ... @@ -3,6 +3,9 @@
3 3 use App\Models\LegacyEducationLevel;
4 4 use App\Models\LegacyInstitution;
5 5 use Faker\Generator as Faker;
  6 +use Illuminate\Database\Eloquent\Factory;
  7 +
  8 +/** @var Factory $factory */
6 9  
7 10 $factory->define(LegacyEducationLevel::class, function (Faker $faker) {
8 11 return [
... ...
database/factories/LegacyEducationNetworkFactory.php
... ... @@ -4,6 +4,9 @@ use App\Models\LegacyEducationNetwork;
4 4 use App\Models\LegacyInstitution;
5 5 use App\Models\LegacyUser;
6 6 use Faker\Generator as Faker;
  7 +use Illuminate\Database\Eloquent\Factory;
  8 +
  9 +/** @var Factory $factory */
7 10  
8 11 $factory->define(LegacyEducationNetwork::class, function (Faker $faker) {
9 12 return [
... ...
database/factories/LegacyEducationTypeFactory.php
... ... @@ -3,6 +3,9 @@
3 3 use App\Models\LegacyEducationType;
4 4 use App\Models\LegacyInstitution;
5 5 use Faker\Generator as Faker;
  6 +use Illuminate\Database\Eloquent\Factory;
  7 +
  8 +/** @var Factory $factory */
6 9  
7 10 $factory->define(LegacyEducationType::class, function (Faker $faker) {
8 11 return [
... ...
database/factories/LegacyEmployeeFactory.php
... ... @@ -3,6 +3,9 @@
3 3 use App\Models\LegacyEmployee;
4 4 use App\Models\LegacyIndividual;
5 5 use Faker\Generator as Faker;
  6 +use Illuminate\Database\Eloquent\Factory;
  7 +
  8 +/** @var Factory $factory */
6 9  
7 10 $factory->define(LegacyEmployee::class, function (Faker $faker) {
8 11 return [
... ...
database/factories/LegacyEnrollmentFactory.php
... ... @@ -5,6 +5,9 @@ use App\Models\LegacyRegistration;
5 5 use App\Models\LegacySchoolClass;
6 6 use App\Models\LegacyUser;
7 7 use Faker\Generator as Faker;
  8 +use Illuminate\Database\Eloquent\Factory;
  9 +
  10 +/** @var Factory $factory */
8 11  
9 12 $factory->define(LegacyEnrollment::class, function (Faker $faker) {
10 13 return [
... ...
database/factories/LegacyEvaluationRuleFactory.php
... ... @@ -4,6 +4,9 @@ use App\Models\LegacyAverageFormula;
4 4 use App\Models\LegacyEvaluationRule;
5 5 use App\Models\LegacyInstitution;
6 6 use Faker\Generator as Faker;
  7 +use Illuminate\Database\Eloquent\Factory;
  8 +
  9 +/** @var Factory $factory */
7 10  
8 11 require_once __DIR__ . '/../../ieducar/modules/RegraAvaliacao/Model/Nota/TipoValor.php';
9 12 require_once __DIR__ . '/../../ieducar/modules/RegraAvaliacao/Model/TipoProgressao.php';
... ... @@ -43,4 +46,18 @@ $factory-&gt;defineAs(LegacyEvaluationRule::class, &#39;media-presenca-sem-recuperacao&#39;
43 46 'nota_minima_geral' => 0,
44 47  
45 48 ]);
46   -});
47 49 \ No newline at end of file
  50 +});
  51 +
  52 +$factory->defineAs(LegacyEvaluationRule::class, 'progressao-continuada-nota-conceitual', function () use ($factory) {
  53 + $evaluationRule = $factory->raw(LegacyEvaluationRule::class);
  54 +
  55 + return array_merge($evaluationRule, [
  56 + 'tipo_nota' => RegraAvaliacao_Model_Nota_TipoValor::CONCEITUAL,
  57 + 'tipo_progressao' => RegraAvaliacao_Model_TipoProgressao::CONTINUADA,
  58 + 'tipo_presenca' => RegraAvaliacao_Model_TipoPresenca::GERAL,
  59 + 'porcentagem_presenca' => 75,
  60 + 'nota_maxima_geral' => 10,
  61 + 'nota_minima_geral' => 0,
  62 +
  63 + ]);
  64 +});
... ...
database/factories/LegacyIndividual.php
... ... @@ -3,6 +3,9 @@
3 3 use App\Models\LegacyIndividual;
4 4 use App\Models\LegacyPerson;
5 5 use Faker\Generator as Faker;
  6 +use Illuminate\Database\Eloquent\Factory;
  7 +
  8 +/** @var Factory $factory */
6 9  
7 10 $factory->define(LegacyIndividual::class, function (Faker $faker) {
8 11 return [
... ...
database/factories/LegacyIndividualFactory.php
... ... @@ -3,6 +3,9 @@
3 3 use App\Models\LegacyIndividual;
4 4 use App\Models\LegacyPerson;
5 5 use Faker\Generator as Faker;
  6 +use Illuminate\Database\Eloquent\Factory;
  7 +
  8 +/** @var Factory $factory */
6 9  
7 10 $factory->define(LegacyIndividual::class, function (Faker $faker) {
8 11 return [
... ...
database/factories/LegacyInstitutionFactory.php
... ... @@ -2,6 +2,9 @@
2 2  
3 3 use App\Models\LegacyInstitution;
4 4 use Faker\Generator as Faker;
  5 +use Illuminate\Database\Eloquent\Factory;
  6 +
  7 +/** @var Factory $factory */
5 8  
6 9 $factory->define(LegacyInstitution::class, function (Faker $faker) {
7 10 return [
... ...
database/factories/LegacyKnowledgeAreaFactory.php
... ... @@ -3,6 +3,9 @@
3 3 use App\Models\LegacyInstitution;
4 4 use App\Models\LegacyKnowledgeArea;
5 5 use Faker\Generator as Faker;
  6 +use Illuminate\Database\Eloquent\Factory;
  7 +
  8 +/** @var Factory $factory */
6 9  
7 10 $factory->define(LegacyKnowledgeArea::class, function (Faker $faker) {
8 11 return [
... ...
database/factories/LegacyLevelFactory.php
... ... @@ -3,13 +3,16 @@
3 3 use App\Models\LegacyCourse;
4 4 use App\Models\LegacyLevel;
5 5 use Faker\Generator as Faker;
  6 +use Illuminate\Database\Eloquent\Factory;
  7 +
  8 +/** @var Factory $factory */
6 9  
7 10 $factory->define(LegacyLevel::class, function (Faker $faker) {
8 11 return [
9 12 'nm_serie' => $faker->words(3, true),
10 13 'ref_usuario_cad' => 1,
11 14 'ref_cod_curso' => factory(LegacyCourse::class)->create(),
12   - 'etapa_curso' => $faker->randomElement([1,2,3,4]),
  15 + 'etapa_curso' => $faker->randomElement([1, 2, 3, 4]),
13 16 'carga_horaria' => $faker->randomFloat(),
14 17 'data_cadastro' => $faker->dateTime(),
15 18 ];
... ...
database/factories/LegacyPersonFactory.php
... ... @@ -2,6 +2,9 @@
2 2  
3 3 use App\Models\LegacyPerson;
4 4 use Faker\Generator as Faker;
  5 +use Illuminate\Database\Eloquent\Factory;
  6 +
  7 +/** @var Factory $factory */
5 8  
6 9 $factory->define(LegacyPerson::class, function (Faker $faker) {
7 10 return [
... ...
database/factories/LegacyRegimeTypeFactory.php
... ... @@ -3,6 +3,9 @@
3 3 use App\Models\LegacyInstitution;
4 4 use App\Models\LegacyRegimeType;
5 5 use Faker\Generator as Faker;
  6 +use Illuminate\Database\Eloquent\Factory;
  7 +
  8 +/** @var Factory $factory */
6 9  
7 10 $factory->define(LegacyRegimeType::class, function (Faker $faker) {
8 11 return [
... ...
database/factories/LegacyRegistrationFactory.php
... ... @@ -3,6 +3,9 @@
3 3 use App\Models\LegacyRegistration;
4 4 use App\Models\LegacyStudent;
5 5 use Faker\Generator as Faker;
  6 +use Illuminate\Database\Eloquent\Factory;
  7 +
  8 +/** @var Factory $factory */
6 9  
7 10 $factory->define(LegacyRegistration::class, function (Faker $faker) {
8 11 return [
... ...
database/factories/LegacyRegistrationScoreFactory.php
... ... @@ -3,6 +3,9 @@
3 3 use App\Models\LegacyRegistration;
4 4 use App\Models\LegacyRegistrationScore;
5 5 use Faker\Generator as Faker;
  6 +use Illuminate\Database\Eloquent\Factory;
  7 +
  8 +/** @var Factory $factory */
6 9  
7 10 $factory->define(LegacyRegistrationScore::class, function (Faker $faker) {
8 11 return [
... ...
database/factories/LegacyRoundingTableFactory.php
... ... @@ -5,7 +5,6 @@ use Faker\Generator as Faker;
5 5 use App\Models\LegacyInstitution;
6 6  
7 7 $factory->define(LegacyRoundingTable::class, function (Faker $faker) {
8   -
9 8 return [
10 9 'instituicao_id' => factory(LegacyInstitution::class)->state('unique')->make(),
11 10 'nome' => $faker->words(3, true),
... ... @@ -20,3 +19,11 @@ $factory-&gt;defineAs(LegacyRoundingTable::class, &#39;numeric&#39;, function (Faker $faker
20 19 'tipo_nota' => RegraAvaliacao_Model_Nota_TipoValor::NUMERICA,
21 20 ]);
22 21 });
  22 +
  23 +$factory->defineAs(LegacyRoundingTable::class, 'conceitual', function () use ($factory) {
  24 + $roundingTable = $factory->raw(LegacyRoundingTable::class);
  25 +
  26 + return array_merge($roundingTable, [
  27 + 'tipo_nota' => RegraAvaliacao_Model_Nota_TipoValor::CONCEITUAL,
  28 + ]);
  29 +});
... ...
database/factories/LegacySchoolAcademicYearFactory.php
... ... @@ -3,6 +3,9 @@
3 3 use App\Models\LegacySchool;
4 4 use App\Models\LegacySchoolAcademicYear;
5 5 use App\Models\LegacyUser;
  6 +use Illuminate\Database\Eloquent\Factory;
  7 +
  8 +/** @var Factory $factory */
6 9  
7 10 $factory->define(LegacySchoolAcademicYear::class, function () {
8 11 return [
... ...
database/factories/LegacySchoolClassFactory.php
... ... @@ -7,6 +7,9 @@ use App\Models\LegacySchoolClassType;
7 7 use App\Models\LegacySchoolGrade;
8 8 use App\Models\LegacyUser;
9 9 use Faker\Generator as Faker;
  10 +use Illuminate\Database\Eloquent\Factory;
  11 +
  12 +/** @var Factory $factory */
10 13  
11 14 $factory->define(LegacySchoolClass::class, function (Faker $faker) {
12 15  
... ...
database/factories/LegacySchoolClassStageFactory.php
... ... @@ -4,6 +4,9 @@ use App\Models\LegacySchoolClass;
4 4 use App\Models\LegacySchoolClassStage;
5 5 use App\Models\LegacyStageType;
6 6 use Faker\Generator as Faker;
  7 +use Illuminate\Database\Eloquent\Factory;
  8 +
  9 +/** @var Factory $factory */
7 10  
8 11 $factory->define(LegacySchoolClassStage::class, function (Faker $faker) {
9 12 return [
... ...
database/factories/LegacySchoolClassTypeFactory.php
... ... @@ -3,6 +3,9 @@
3 3 use App\Models\LegacySchoolClassType;
4 4 use App\Models\LegacyUser;
5 5 use Faker\Generator as Faker;
  6 +use Illuminate\Database\Eloquent\Factory;
  7 +
  8 +/** @var Factory $factory */
6 9  
7 10 $factory->define(LegacySchoolClassType::class, function (Faker $faker) {
8 11  
... ...
database/factories/LegacySchoolFactory.php
... ... @@ -6,6 +6,9 @@ use App\Models\LegacyInstitution;
6 6 use App\Models\LegacySchool;
7 7 use App\Models\LegacyUser;
8 8 use Faker\Generator as Faker;
  9 +use Illuminate\Database\Eloquent\Factory;
  10 +
  11 +/** @var Factory $factory */
9 12  
10 13 $factory->define(LegacySchool::class, function (Faker $faker) {
11 14 return [
... ...
database/factories/LegacySchoolGradeDisciplineFactory.php 0 → 100644
... ... @@ -0,0 +1,20 @@
  1 +<?php
  2 +
  3 +use App\Models\LegacyDiscipline;
  4 +use App\Models\LegacyLevel;
  5 +use App\Models\LegacySchool;
  6 +use App\Models\LegacySchoolGradeDiscipline;
  7 +use Illuminate\Database\Eloquent\Factory;
  8 +
  9 +/** @var Factory $factory */
  10 +
  11 +$factory->define(LegacySchoolGradeDiscipline::class, function () {
  12 +
  13 + return [
  14 + 'ref_ref_cod_escola' => factory(LegacySchool::class)->create(),
  15 + 'ref_ref_cod_serie' => factory(LegacyLevel::class)->create(),
  16 + 'ref_cod_disciplina' => factory(LegacyDiscipline::class)->create(),
  17 + 'ativo' => 1,
  18 + 'anos_letivos' => '{'.now()->year.'}',
  19 + ];
  20 +});
... ...
database/factories/LegacySchoolGradeFactory.php
... ... @@ -6,6 +6,9 @@ use App\Models\LegacySchoolCourse;
6 6 use App\Models\LegacySchoolGrade;
7 7 use App\Models\LegacyUser;
8 8 use Faker\Generator as Faker;
  9 +use Illuminate\Database\Eloquent\Factory;
  10 +
  11 +/** @var Factory $factory */
9 12  
10 13 $factory->define(LegacySchoolGrade::class, function (Faker $faker) {
11 14  
... ...
database/factories/LegacySchoolStageFactory.php
... ... @@ -4,6 +4,9 @@ use App\Models\LegacySchoolAcademicYear;
4 4 use App\Models\LegacySchoolStage;
5 5 use App\Models\LegacyStageType;
6 6 use Faker\Generator as Faker;
  7 +use Illuminate\Database\Eloquent\Factory;
  8 +
  9 +/** @var Factory $factory */
7 10  
8 11 $factory->define(LegacySchoolStage::class, function (Faker $faker) {
9 12  
... ...
database/factories/LegacyStageTypeFactory.php
... ... @@ -4,6 +4,9 @@ use App\Models\LegacyInstitution;
4 4 use App\Models\LegacyStageType;
5 5 use App\Models\LegacyUser;
6 6 use Faker\Generator as Faker;
  7 +use Illuminate\Database\Eloquent\Factory;
  8 +
  9 +/** @var Factory $factory */
7 10  
8 11 $factory->define(LegacyStageType::class, function (Faker $faker) {
9 12 return [
... ...
database/factories/LegacyStudentFactory.php
... ... @@ -2,6 +2,9 @@
2 2  
3 3 use App\Models\LegacyIndividual;
4 4 use App\Models\LegacyStudent;
  5 +use Illuminate\Database\Eloquent\Factory;
  6 +
  7 +/** @var Factory $factory */
5 8  
6 9 $factory->define(LegacyStudent::class, function () {
7 10 return [
... ...
database/factories/LegacyUserFactory.php
... ... @@ -4,6 +4,9 @@ use App\Models\LegacyEmployee;
4 4 use App\Models\LegacyUser;
5 5 use App\Models\LegacyUserType;
6 6 use Faker\Generator as Faker;
  7 +use Illuminate\Database\Eloquent\Factory;
  8 +
  9 +/** @var Factory $factory */
7 10  
8 11 $factory->define(LegacyUser::class, function (Faker $faker) {
9 12 return [
... ...
database/factories/LegacyUserTypeFactory.php
... ... @@ -3,6 +3,9 @@
3 3 use App\Models\LegacyEmployee;
4 4 use App\Models\LegacyUserType;
5 5 use Faker\Generator as Faker;
  6 +use Illuminate\Database\Eloquent\Factory;
  7 +
  8 +/** @var Factory $factory */
6 9  
7 10 $factory->define(LegacyUserType::class, function (Faker $faker) {
8 11 return [
... ...
database/factories/LegacyValueRoundingTableFactory.php
... ... @@ -5,9 +5,8 @@ use Faker\Generator as Faker;
5 5 use App\Models\LegacyRoundingTable;
6 6  
7 7 $factory->define(LegacyValueRoundingTable::class, function (Faker $faker) {
8   -
9 8 return [
10 9 'tabela_arredondamento_id' => factory(LegacyRoundingTable::class)->make(),
11 10 'nome' =>$faker->randomNumber(1),
12 11 ];
13   -});
14 12 \ No newline at end of file
  13 +});
... ...
database/factories/NeighborhoodFactory.php
... ... @@ -3,6 +3,9 @@
3 3 use App\District;
4 4 use App\Neighborhood;
5 5 use Faker\Generator as Faker;
  6 +use Illuminate\Database\Eloquent\Factory;
  7 +
  8 +/** @var Factory $factory */
6 9  
7 10 $factory->define(Neighborhood::class, function (Faker $faker) {
8 11 return [
... ...
database/factories/StateFactory.php
... ... @@ -3,6 +3,9 @@
3 3 use App\Country;
4 4 use App\State;
5 5 use Faker\Generator as Faker;
  6 +use Illuminate\Database\Eloquent\Factory;
  7 +
  8 +/** @var Factory $factory */
6 9  
7 10 $factory->define(State::class, function (Faker $faker) {
8 11 return [
... ...
database/factories/UserFactory.php
1 1 <?php
2 2  
3 3 use App\User;
  4 +use Faker\Generator as Faker;
4 5 use Illuminate\Database\Eloquent\Factory;
5 6 use Illuminate\Support\Str;
6   -use Faker\Generator as Faker;
7 7  
8 8 /** @var Factory $factory */
  9 +
9 10 $factory->define(User::class, function (Faker $faker) {
10 11 return [
11 12 'name' => $faker->name,
... ...
database/migrations/2019_09_01_100000_community_links.php 0 → 100644
... ... @@ -0,0 +1,21 @@
  1 +<?php
  2 +
  3 +use Illuminate\Database\Migrations\Migration;
  4 +use Illuminate\Support\Facades\DB;
  5 +
  6 +class CommunityLinks extends Migration
  7 +{
  8 + /**
  9 + * Run the migrations.
  10 + *
  11 + * @return void
  12 + */
  13 + public function up()
  14 + {
  15 + DB::table('pmieducar.configuracoes_gerais')->where('ref_cod_instituicao', 1)->update([
  16 + 'ieducar_login_footer' => '<p>Comunidade i-Educar - <a class="light" href="https://forum.ieducar.org/" target="_blank"> Obter Suporte </a></p>',
  17 + 'ieducar_external_footer' => '<p>Conheça mais sobre o i-Educar, acesse nosso <a href="https://ieducar.org/blog/">blog</a>.</p>',
  18 + 'ieducar_internal_footer' => '<p>Conheça mais sobre o i-Educar, acesse nosso <a href="https://ieducar.org/blog/">blog</a>.</p>',
  19 + ]);
  20 + }
  21 +}
... ...
database/migrations/2019_09_06_174033_create_exemption_list_menu.php 0 → 100644
... ... @@ -0,0 +1,33 @@
  1 +<?php
  2 +
  3 +use App\Menu;
  4 +use App\Process;
  5 +use Illuminate\Database\Migrations\Migration;
  6 +
  7 +class CreateExemptionListMenu extends Migration
  8 +{
  9 + /**
  10 + * Run the migrations.
  11 + *
  12 + * @return void
  13 + */
  14 + public function up()
  15 + {
  16 + Menu::query()->create([
  17 + 'parent_id' => Menu::query()->where('old', Process::CONSULTAS)->firstOrFail()->getKey(),
  18 + 'title' => 'Consulta de dispensas',
  19 + 'link' => '/consulta-dispensas',
  20 + 'process' => Process::EXEMPTION_LIST,
  21 + ]);
  22 + }
  23 +
  24 + /**
  25 + * Reverse the migrations.
  26 + *
  27 + * @return void
  28 + */
  29 + public function down()
  30 + {
  31 + Menu::query()->where('process', Process::EXEMPTION_LIST)->delete();
  32 + }
  33 +}
... ...
database/migrations/2019_09_11_000000_drop_foreign_keys_escola_serie_disciplina_table.php 0 → 100644
... ... @@ -0,0 +1,69 @@
  1 +<?php
  2 +
  3 +use App\Support\Database\DropForeignKey;
  4 +use Illuminate\Support\Facades\Schema;
  5 +use Illuminate\Database\Schema\Blueprint;
  6 +use Illuminate\Database\Migrations\Migration;
  7 +
  8 +class DropForeignKeysEscolaSerieDisciplinaTable extends Migration
  9 +{
  10 + use DropForeignKey;
  11 +
  12 + /**
  13 + * Run the migrations.
  14 + *
  15 + * @return void
  16 + */
  17 + public function up()
  18 + {
  19 + $this->dropForeignKeysFromTable('escola_serie_disciplina');
  20 + }
  21 +
  22 + /**
  23 + * Reverse the migrations.
  24 + *
  25 + * @return void
  26 + */
  27 + public function down()
  28 + {
  29 + Schema::table('pmieducar.matricula_excessao', function (Blueprint $table) {
  30 + $table->foreign(['ref_cod_serie', 'ref_cod_escola', 'ref_cod_disciplina'])
  31 + ->references(['ref_ref_cod_serie', 'ref_ref_cod_escola', 'ref_cod_disciplina'])
  32 + ->on('pmieducar.escola_serie_disciplina')
  33 + ->onUpdate('restrict')
  34 + ->onDelete('restrict');
  35 + });
  36 +
  37 + Schema::table('pmieducar.quadro_horario_horarios_aux', function (Blueprint $table) {
  38 + $table->foreign(['ref_cod_serie', 'ref_cod_escola', 'ref_cod_disciplina'])
  39 + ->references(['ref_ref_cod_serie', 'ref_ref_cod_escola', 'ref_cod_disciplina'])
  40 + ->on('pmieducar.escola_serie_disciplina')
  41 + ->onUpdate('restrict')
  42 + ->onDelete('restrict');
  43 + });
  44 +
  45 + Schema::table('pmieducar.disciplina_dependencia', function (Blueprint $table) {
  46 + $table->foreign(['ref_cod_serie', 'ref_cod_escola', 'ref_cod_disciplina'])
  47 + ->references(['ref_ref_cod_serie', 'ref_ref_cod_escola', 'ref_cod_disciplina'])
  48 + ->on('pmieducar.escola_serie_disciplina')
  49 + ->onUpdate('restrict')
  50 + ->onDelete('restrict');
  51 + });
  52 +
  53 + Schema::table('pmieducar.nota_aluno', function (Blueprint $table) {
  54 + $table->foreign(['ref_cod_serie', 'ref_cod_escola', 'ref_cod_disciplina'])
  55 + ->references(['ref_ref_cod_serie', 'ref_ref_cod_escola', 'ref_cod_disciplina'])
  56 + ->on('pmieducar.escola_serie_disciplina')
  57 + ->onUpdate('restrict')
  58 + ->onDelete('restrict');
  59 + });
  60 +
  61 + Schema::table('pmieducar.falta_aluno', function (Blueprint $table) {
  62 + $table->foreign(['ref_cod_serie', 'ref_cod_escola', 'ref_cod_disciplina'])
  63 + ->references(['ref_ref_cod_serie', 'ref_ref_cod_escola', 'ref_cod_disciplina'])
  64 + ->on('pmieducar.escola_serie_disciplina')
  65 + ->onUpdate('restrict')
  66 + ->onDelete('restrict');
  67 + });
  68 + }
  69 +}
... ...
database/migrations/2019_09_11_000000_drop_primary_key_in_escola_serie_disciplina_table.php 0 → 100644
... ... @@ -0,0 +1,35 @@
  1 +<?php
  2 +
  3 +use App\Support\Database\DropPrimaryKey;
  4 +use Illuminate\Support\Facades\DB;
  5 +use Illuminate\Database\Migrations\Migration;
  6 +
  7 +class DropPrimaryKeyInEscolaSerieDisciplinaTable extends Migration
  8 +{
  9 + use DropPrimaryKey;
  10 +
  11 + /**
  12 + * Run the migrations.
  13 + *
  14 + * @return void
  15 + */
  16 + public function up()
  17 + {
  18 + $this->dropPrimaryKeysFromTable('escola_serie_disciplina');
  19 + }
  20 +
  21 + /**
  22 + * Reverse the migrations.
  23 + *
  24 + * @return void
  25 + */
  26 + public function down()
  27 + {
  28 + DB::unprepared(
  29 + '
  30 + ALTER TABLE ONLY pmieducar.escola_serie_disciplina
  31 + ADD CONSTRAINT escola_serie_disciplina_pkey PRIMARY KEY (ref_ref_cod_serie, ref_ref_cod_escola, ref_cod_disciplina);
  32 + '
  33 + );
  34 + }
  35 +}
... ...
database/migrations/2019_09_11_100000_add_id_in_pmieducar_escola_serie_disciplina.php 0 → 100644
... ... @@ -0,0 +1,32 @@
  1 +<?php
  2 +
  3 +use Illuminate\Support\Facades\Schema;
  4 +use Illuminate\Database\Schema\Blueprint;
  5 +use Illuminate\Database\Migrations\Migration;
  6 +
  7 +class AddIdInPmieducarEscolaSerieDisciplina extends Migration
  8 +{
  9 + /**
  10 + * Run the migrations.
  11 + *
  12 + * @return void
  13 + */
  14 + public function up()
  15 + {
  16 + Schema::table('pmieducar.escola_serie_disciplina', function (Blueprint $table) {
  17 + $table->increments('id');
  18 + });
  19 + }
  20 +
  21 + /**
  22 + * Reverse the migrations.
  23 + *
  24 + * @return void
  25 + */
  26 + public function down()
  27 + {
  28 + Schema::table('pmieducar.escola_serie_disciplina', function (Blueprint $table) {
  29 + $table->dropColumn('id');
  30 + });
  31 + }
  32 +}
... ...
database/migrations/2019_09_11_100000_add_id_in_pmieducar_escola_serie_disciplina_excluidos.php 0 → 100644
... ... @@ -0,0 +1,32 @@
  1 +<?php
  2 +
  3 +use Illuminate\Support\Facades\Schema;
  4 +use Illuminate\Database\Schema\Blueprint;
  5 +use Illuminate\Database\Migrations\Migration;
  6 +
  7 +class AddIdInPmieducarEscolaSerieDisciplinaExcluidos extends Migration
  8 +{
  9 + /**
  10 + * Run the migrations.
  11 + *
  12 + * @return void
  13 + */
  14 + public function up()
  15 + {
  16 + Schema::table('pmieducar.escola_serie_disciplina_excluidos', function (Blueprint $table) {
  17 + $table->increments('id');
  18 + });
  19 + }
  20 +
  21 + /**
  22 + * Reverse the migrations.
  23 + *
  24 + * @return void
  25 + */
  26 + public function down()
  27 + {
  28 + Schema::table('pmieducar.escola_serie_disciplina_excluidos', function (Blueprint $table) {
  29 + $table->dropColumn('id');
  30 + });
  31 + }
  32 +}
... ...
database/migrations/2019_09_11_100000_add_unique_index_in_escola_serie_disciplina_table.php 0 → 100644
... ... @@ -0,0 +1,32 @@
  1 +<?php
  2 +
  3 +use Illuminate\Support\Facades\Schema;
  4 +use Illuminate\Database\Schema\Blueprint;
  5 +use Illuminate\Database\Migrations\Migration;
  6 +
  7 +class AddUniqueIndexInEscolaSerieDisciplinaTable extends Migration
  8 +{
  9 + /**
  10 + * Run the migrations.
  11 + *
  12 + * @return void
  13 + */
  14 + public function up()
  15 + {
  16 + Schema::table('pmieducar.escola_serie_disciplina', function (Blueprint $table) {
  17 + $table->unique(['ref_ref_cod_serie', 'ref_ref_cod_escola', 'ref_cod_disciplina']);
  18 + });
  19 + }
  20 +
  21 + /**
  22 + * Reverse the migrations.
  23 + *
  24 + * @return void
  25 + */
  26 + public function down()
  27 + {
  28 + Schema::table('pmieducar.escola_serie_disciplina', function (Blueprint $table) {
  29 + $table->dropUnique(['ref_ref_cod_serie', 'ref_ref_cod_escola', 'ref_cod_disciplina']);
  30 + });
  31 + }
  32 +}
... ...
database/migrations/2019_09_11_200000_recreate_foreign_keys_escola_serie_disciplina_table.php 0 → 100644
... ... @@ -0,0 +1,84 @@
  1 +<?php
  2 +
  3 +use Illuminate\Support\Facades\Schema;
  4 +use Illuminate\Database\Schema\Blueprint;
  5 +use Illuminate\Database\Migrations\Migration;
  6 +
  7 +class RecreateForeignKeysEscolaSerieDisciplinaTable extends Migration
  8 +{
  9 + /**
  10 + * Run the migrations.
  11 + *
  12 + * @return void
  13 + */
  14 + public function up()
  15 + {
  16 + Schema::table('pmieducar.matricula_excessao', function (Blueprint $table) {
  17 + $table->foreign(['ref_cod_serie', 'ref_cod_escola', 'ref_cod_disciplina'])
  18 + ->references(['ref_ref_cod_serie', 'ref_ref_cod_escola', 'ref_cod_disciplina'])
  19 + ->on('pmieducar.escola_serie_disciplina')
  20 + ->onUpdate('restrict')
  21 + ->onDelete('restrict');
  22 + });
  23 +
  24 + Schema::table('pmieducar.quadro_horario_horarios_aux', function (Blueprint $table) {
  25 + $table->foreign(['ref_cod_serie', 'ref_cod_escola', 'ref_cod_disciplina'])
  26 + ->references(['ref_ref_cod_serie', 'ref_ref_cod_escola', 'ref_cod_disciplina'])
  27 + ->on('pmieducar.escola_serie_disciplina')
  28 + ->onUpdate('restrict')
  29 + ->onDelete('restrict');
  30 + });
  31 +
  32 + Schema::table('pmieducar.disciplina_dependencia', function (Blueprint $table) {
  33 + $table->foreign(['ref_cod_serie', 'ref_cod_escola', 'ref_cod_disciplina'])
  34 + ->references(['ref_ref_cod_serie', 'ref_ref_cod_escola', 'ref_cod_disciplina'])
  35 + ->on('pmieducar.escola_serie_disciplina')
  36 + ->onUpdate('restrict')
  37 + ->onDelete('restrict');
  38 + });
  39 +
  40 + Schema::table('pmieducar.nota_aluno', function (Blueprint $table) {
  41 + $table->foreign(['ref_cod_serie', 'ref_cod_escola', 'ref_cod_disciplina'])
  42 + ->references(['ref_ref_cod_serie', 'ref_ref_cod_escola', 'ref_cod_disciplina'])
  43 + ->on('pmieducar.escola_serie_disciplina')
  44 + ->onUpdate('restrict')
  45 + ->onDelete('restrict');
  46 + });
  47 +
  48 + Schema::table('pmieducar.falta_aluno', function (Blueprint $table) {
  49 + $table->foreign(['ref_cod_serie', 'ref_cod_escola', 'ref_cod_disciplina'])
  50 + ->references(['ref_ref_cod_serie', 'ref_ref_cod_escola', 'ref_cod_disciplina'])
  51 + ->on('pmieducar.escola_serie_disciplina')
  52 + ->onUpdate('restrict')
  53 + ->onDelete('restrict');
  54 + });
  55 + }
  56 +
  57 + /**
  58 + * Reverse the migrations.
  59 + *
  60 + * @return void
  61 + */
  62 + public function down()
  63 + {
  64 + Schema::table('pmieducar.matricula_excessao', function (Blueprint $table) {
  65 + $table->dropForeign(['ref_cod_serie', 'ref_cod_escola', 'ref_cod_disciplina']);
  66 + });
  67 +
  68 + Schema::table('pmieducar.quadro_horario_horarios_aux', function (Blueprint $table) {
  69 + $table->dropForeign(['ref_cod_serie', 'ref_cod_escola', 'ref_cod_disciplina']);
  70 + });
  71 +
  72 + Schema::table('pmieducar.disciplina_dependencia', function (Blueprint $table) {
  73 + $table->dropForeign(['ref_cod_serie', 'ref_cod_escola', 'ref_cod_disciplina']);
  74 + });
  75 +
  76 + Schema::table('pmieducar.nota_aluno', function (Blueprint $table) {
  77 + $table->dropForeign(['ref_cod_serie', 'ref_cod_escola', 'ref_cod_disciplina']);
  78 + });
  79 +
  80 + Schema::table('pmieducar.falta_aluno', function (Blueprint $table) {
  81 + $table->dropForeign(['ref_cod_serie', 'ref_cod_escola', 'ref_cod_disciplina']);
  82 + });
  83 + }
  84 +}
... ...
database/migrations/2019_09_12_100000_alter_descricao_length_in_tabele_arredondamento_valor.php 0 → 100644
... ... @@ -0,0 +1,32 @@
  1 +<?php
  2 +
  3 +use Illuminate\Support\Facades\Schema;
  4 +use Illuminate\Database\Schema\Blueprint;
  5 +use Illuminate\Database\Migrations\Migration;
  6 +
  7 +class AlterDescricaoLengthInTabeleArredondamentoValor extends Migration
  8 +{
  9 + /**
  10 + * Run the migrations.
  11 + *
  12 + * @return void
  13 + */
  14 + public function up()
  15 + {
  16 + Schema::table('modules.tabela_arredondamento_valor', function (Blueprint $table) {
  17 + $table->string('descricao', 50)->change();
  18 + });
  19 + }
  20 +
  21 + /**
  22 + * Reverse the migrations.
  23 + *
  24 + * @return void
  25 + */
  26 + public function down()
  27 + {
  28 + Schema::table('modules.tabela_arredondamento_valor', function (Blueprint $table) {
  29 + $table->string('descricao', 25)->change();
  30 + });
  31 + }
  32 +}
... ...
database/migrations/2019_09_16_094112_ordena_menu_consulta_dispensa_disciplinas.php 0 → 100644
... ... @@ -0,0 +1,32 @@
  1 +<?php
  2 +
  3 +use App\Menu;
  4 +use App\Process;
  5 +use Illuminate\Database\Migrations\Migration;
  6 +
  7 +class OrdenaMenuConsultaDispensaDisciplinas extends Migration
  8 +{
  9 + /**
  10 + * Run the migrations.
  11 + *
  12 + * @return void
  13 + */
  14 + public function up()
  15 + {
  16 + Menu::where('process', Process::EXEMPTION_LIST)->first()->update(['order' => 1]);
  17 + Menu::where('process', 9998900)->first()->update(['order' => 2]);
  18 + Menu::where('process', 9998910)->first()->update(['order' => 3]);
  19 + }
  20 +
  21 + /**
  22 + * Reverse the migrations.
  23 + *
  24 + * @return void
  25 + */
  26 + public function down()
  27 + {
  28 + Menu::where('process', Process::EXEMPTION_LIST)->first()->update(['order' => 0]);
  29 + Menu::where('process', 9998900)->first()->update(['order' => 0]);
  30 + Menu::where('process', 9998910)->first()->update(['order' => 0]);
  31 + }
  32 +}
... ...
database/migrations/legacy/2019_01_01_100000_create_pmieducar_configuracoes_gerais_table.php
... ... @@ -30,9 +30,9 @@ class CreatePmieducarConfiguracoesGeraisTable extends Migration
30 30 active_on_ieducar smallint DEFAULT 1,
31 31 ieducar_image character varying(255) DEFAULT NULL::character varying,
32 32 ieducar_entity_name character varying(255) DEFAULT NULL::character varying,
33   - ieducar_login_footer text DEFAULT \'<p>Portabilis Tecnologia - suporte@portabilis.com.br - <a class=" light" href="http://suporte.portabilis.com.br" target="_blank"> Obter Suporte </a></p> \'::character varying,
34   - ieducar_external_footer text DEFAULT \'<p>Conhe&ccedil;a mais sobre o i-Educar e a Portabilis, acesse nosso <a href=" http://blog.portabilis.com.br">blog</a></p> \'::character varying,
35   - ieducar_internal_footer text DEFAULT \'<p>Conhe&ccedil;a mais sobre o i-Educar e a Portabilis, <a href=" http://blog.portabilis.com.br" target="_blank">acesse nosso blog</a> &nbsp;&nbsp;&nbsp; &copy; Portabilis - Todos os direitos reservados</p>\'::character varying,
  33 + ieducar_login_footer text DEFAULT \'<p>Comunidade i-Educar - <a class="light" href="https://forum.ieducar.org/" target="_blank"> Obter Suporte </a></p>\'::character varying,
  34 + ieducar_external_footer text DEFAULT \'<p>Conheça mais sobre o i-Educar, acesse nosso <a href="https://ieducar.org/blog/">blog</a>.</p>\'::character varying,
  35 + ieducar_internal_footer text DEFAULT \'<p>Conheça mais sobre o i-Educar, acesse nosso <a href="https://ieducar.org/blog/">blog</a>.</p>\'::character varying,
36 36 facebook_url character varying(255) DEFAULT \'https://www.facebook.com/portabilis\'::character varying,
37 37 twitter_url character varying(255) DEFAULT \'https://twitter.com/portabilis\'::character varying,
38 38 linkedin_url character varying(255) DEFAULT \'https://www.linkedin.com/company/portabilis-tecnologia\'::character varying,
... ...
database/sqls/inserts/pmieducar.configuracoes_gerais.sql
1 1 INSERT INTO pmieducar.configuracoes_gerais (ref_cod_instituicao, permite_relacionamento_posvendas, url_novo_educacao, mostrar_codigo_inep_aluno, justificativa_falta_documentacao_obrigatorio, tamanho_min_rede_estadual, modelo_boletim_professor, custom_labels, url_cadastro_usuario, active_on_ieducar, ieducar_image, ieducar_entity_name, ieducar_login_footer, ieducar_external_footer, ieducar_internal_footer, facebook_url, twitter_url, linkedin_url, ieducar_suspension_message, bloquear_cadastro_aluno)
2   -VALUES(1, 1, NULL, 1, 1, NULL, 1, '{"aluno.detalhe.codigo_aluno":"C\u00f3digo Aluno","aluno.detalhe.codigo_estado":"C\u00f3digo estado","matricula.detalhe.enturmar":"Enturmar","matricula.detalhe.solicitar_transferencia":"Solicitar transfer\u00eancia","historico.cadastro.curso_detalhe":"","historico.cadastro.serie":"S\u00e9rie","turma.detalhe.sigla":"Sigla","report.termo_assinatura_secretario":"Secret\u00e1rio(a)","report.termo_assinatura_diretor":"Gestor(a) da unidade escolar", "report.termo_recuperacao_final":"Exame final"}', NULL, 1, NULL, NULL, '<p>Portabilis Tecnologia - suporte@portabilis.com.br - <a class=" light" href="http://suporte.portabilis.com.br" target="_blank"> Obter Suporte </a></p> ', '<p>Conhe&ccedil;a mais sobre o i-Educar e a Portabilis, acesse nosso <a href=" http://blog.portabilis.com.br">blog</a></p> ', '<p>Conhe&ccedil;a mais sobre o i-Educar e a Portabilis, <a href=" http://blog.portabilis.com.br" target="_blank">acesse nosso blog</a> &nbsp;&nbsp;&nbsp; &copy; Portabilis - Todos os direitos reservados</p>', 'https://www.facebook.com/portabilis', 'https://twitter.com/portabilis', 'https://www.linkedin.com/company/portabilis-tecnologia', NULL, false);
  2 +VALUES(1, 1, NULL, 1, 1, NULL, 1, '{"aluno.detalhe.codigo_aluno":"C\u00f3digo Aluno","aluno.detalhe.codigo_estado":"C\u00f3digo estado","matricula.detalhe.enturmar":"Enturmar","matricula.detalhe.solicitar_transferencia":"Solicitar transfer\u00eancia","historico.cadastro.curso_detalhe":"","historico.cadastro.serie":"S\u00e9rie","turma.detalhe.sigla":"Sigla","report.termo_assinatura_secretario":"Secret\u00e1rio(a)","report.termo_assinatura_diretor":"Gestor(a) da unidade escolar", "report.termo_recuperacao_final":"Exame final"}', NULL, 1, NULL, NULL, '<p>Comunidade i-Educar - <a class="light" href="https://forum.ieducar.org/" target="_blank"> Obter Suporte </a></p>', '<p>Conheça mais sobre o i-Educar, acesse nosso <a href="https://ieducar.org/blog/">blog</a>.</p>', '<p>Conheça mais sobre o i-Educar, acesse nosso <a href="https://ieducar.org/blog/">blog</a>.</p>', 'https://www.facebook.com/portabilis', 'https://twitter.com/portabilis', 'https://www.linkedin.com/company/portabilis-tecnologia', NULL, false);
... ...
ieducar/includes/download.php
... ... @@ -1,20 +0,0 @@
1   -<?php
2   -
3   -require_once 'Utils/Mimetype.class.php';
4   -require_once 'Utils/FileStream.class.php';
5   -
6   -$filename = isset($_GET['filename']) ?? null;
7   -$defaultDirectories = ['tmp', 'pdf'];
8   -
9   -$mimetype = new Mimetype();
10   -$fileStream = new FileStream($mimetype, $defaultDirectories);
11   -
12   -try {
13   - $fileStream->setFilepath($filename);
14   - $fileStream->streamFile();
15   -} catch (Exception $e) {
16   - print $e->getMessage();
17   - exit();
18   -}
19   -
20   -unlink($filename);
21 0 \ No newline at end of file
ieducar/intranet/DocumentacaoPadrao.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3 require_once ("include/clsBase.inc.php");
28 4 require_once ("include/clsCadastro.inc.php");
29 5 require_once ("include/clsBanco.inc.php");
... ...
ieducar/intranet/adicionar_documentos_det.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3 $desvio_diretorio = "";
28 4 require_once ("include/clsBase.inc.php");
29 5 require_once ("include/clsDetalhe.inc.php");
... ... @@ -33,7 +9,7 @@ require_once (&quot;include/clsBanco.inc.php&quot;);
33 9  
34 10 class clsIndex extends clsBase
35 11 {
36   -
  12 +
37 13 function Formular()
38 14 {
39 15 $this->SetTitulo( "{$this->_instituicao} Documentos" );
... ... @@ -51,13 +27,13 @@ class indice extends clsDetalhe
51 27  
52 28 $objDocumento = new clsDocumento($idpes);
53 29 $detalheDocumento = $objDocumento->detalhe();
54   -
  30 +
55 31 list($idpes, $rg, $data_exp_rg, $sigla_uf_exp_rg, $tipo_cert_civil, $num_termo, $num_livro, $num_folha, $data_emissao_cert_civil, $sigla_uf_cert_civil, $cartorio_cert_civil, $num_cart_trabalho, $serie_cart_trabalho, $data_emissao_cart_trabalho, $sigla_uf_cart_trabalho, $num_tit_eleitor, $zona_tit_eleitor, $secao_tit_eleitor, $idorg_exp_rg) = $objDocumento->detalhe();
56   -
  32 +
57 33 $this->addDetalhe( array("RG", $detalheDocumento['rg'] ) );
58 34 $this->addDetalhe( array("Data Expedição", date('d/m/Y',strtotime(substr($data_exp_rg,0,19)) ) ) );
59 35 $this->addDetalhe( array("Órgão Expedição", $sigla_uf_exp_rg ) );
60   - $this->addDetalhe( array("Certificado Civil", $tipo_cert_civil ) );
  36 + $this->addDetalhe( array("Certificado Civil", $tipo_cert_civil ) );
61 37 $this->addDetalhe( array("Termo", $num_termo ) );
62 38 $this->addDetalhe( array("Livro", $num_livro ) );
63 39 $this->addDetalhe( array("Folha", $num_folha ) );
... ... @@ -72,7 +48,7 @@ class indice extends clsDetalhe
72 48 $this->addDetalhe( array("Zona", $zona_tit_eleitor ) );
73 49 $this->addDetalhe( array("Seção", $secao_tit_eleitor ) );
74 50 $this->addDetalhe( array("Órgão Expedição", $idorg_exp_rg) );
75   -
  51 +
76 52 $this->url_novo = "adicionar_documentos_cad.php";
77 53 $this->url_editar = "adicionar_documentos_cad.php?idpes={$idpes}";
78 54 $this->url_cancelar = "meusdados.php";
... ... @@ -81,7 +57,7 @@ class indice extends clsDetalhe
81 57 }
82 58 }
83 59  
84   - function Novo()
  60 + function Novo()
85 61 {
86 62 $objDocumento = new clsDocumento($this->rg, $this->data_exp_rg, $this->sigla_uf_exp_rg, $this->tipo_cert_civil, $this->num_termo, $this->num_livro, $this->num_folha, $this->data_emissao_cert_civil, $this->sigla_uf_cert_civil, $this->cartorio_cert_civil, $this->num_cart_trabalho, $this->serie_cart_trabalho, $this->data_emissao_cart_trabalho, $this->sigla_uf_cart_trabalho, $this->num_tit_eleitor, $this->zona_tit_eleitor, $this->secao_tit_eleitor, $this->idorg_exp_rg );
87 63 if( $objDocumento->cadastra() )
... ... @@ -89,11 +65,11 @@ class indice extends clsDetalhe
89 65 echo "<script>document.location='meusdados.php';</script>";
90 66 return true;
91 67 }
92   -
  68 +
93 69 return false;
94 70 }
95 71  
96   - function Editar()
  72 + function Editar()
97 73 {
98 74 $ObjDocumento = new clsDocumento($this->rg, $this->data_exp_rg, $this->sigla_uf_exp_rg, $this->tipo_cert_civil, $this->num_termo, $this->num_livro, $this->num_folha, $this->data_emissao_cert_civil, $this->sigla_uf_cert_civil, $this->cartorio_cert_civil, $this->num_cart_trabalho, $this->serie_cart_trabalho, $this->data_emissao_cart_trabalho, $this->sigla_uf_cart_trabalho, $this->num_tit_eleitor, $this->zona_tit_eleitor, $this->secao_tit_eleitor, $this->idorg_exp_rg);
99 75 if( $ObjDocumento->edita() )
... ...
ieducar/intranet/agenda_admin_cad.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3  
28 4 $desvio_diretorio = "";
29 5 require_once ("include/clsBase.inc.php");
... ...
ieducar/intranet/agenda_admin_det.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3 $desvio_diretorio = "";
28 4 require_once ("include/clsBase.inc.php");
29 5 require_once ("include/clsDetalhe.inc.php");
... ...
ieducar/intranet/agenda_admin_lst.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3 $desvio_diretorio = "";
28 4 require_once ("include/clsBase.inc.php");
29 5 require_once ("include/clsListagem.inc.php");
... ...
ieducar/intranet/agenda_calendario.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3  
28 4 class calendario
29 5 {
... ... @@ -203,4 +179,4 @@ class calendario
203 179 {
204 180 echo $this->gera_calendario();
205 181 }
206   -}
207 182 \ No newline at end of file
  183 +}
... ...
ieducar/intranet/agenda_imprimir.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3  
28 4 require_once ("include/clsBase.inc.php");
29 5 require_once ("include/clsBanco.inc.php");
... ... @@ -114,7 +90,7 @@ class indice extends clsCadastro
114 90 $_SERVER['SERVER_NAME']."/intranet" => "In&iacute;cio",
115 91 "" => "Imprimir agenda"
116 92 ));
117   - $this->enviaLocalizacao($localizacao->montar());
  93 + $this->enviaLocalizacao($localizacao->montar());
118 94  
119 95 return $retorno;
120 96 }
... ... @@ -327,4 +303,4 @@ $pagina-&gt;addForm( $miolo );
327 303  
328 304 $pagina->MakeAll();
329 305  
330   -?>
331 306 \ No newline at end of file
  307 +?>
... ...
ieducar/intranet/agenda_preferencias.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3  
28 4 $desvio_diretorio = "";
29 5 require_once ("include/clsBase.inc.php");
... ...
ieducar/intranet/agenda_responsavel.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3 $desvio_diretorio = "";
28 4 require_once ("include/clsBase.inc.php");
29 5 require_once ("include/clsListagem.inc.php");
... ...
ieducar/intranet/conexoes_lst.php
... ... @@ -2,31 +2,7 @@
2 2  
3 3 use Illuminate\Support\Facades\Session;
4 4  
5   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
6   - * *
7   - * @author Prefeitura Municipal de Itajaí *
8   - * @updated 29/03/2007 *
9   - * Pacote: i-PLB Software Público Livre e Brasileiro *
10   - * *
11   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
12   - * ctima@itajai.sc.gov.br *
13   - * *
14   - * Este programa é software livre, você pode redistribuí-lo e/ou *
15   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
16   - * publicada pela Free Software Foundation, tanto a versão 2 da *
17   - * Licença como (a seu critério) qualquer versão mais nova. *
18   - * *
19   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
20   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
21   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
22   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
23   - * *
24   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
25   - * junto com este programa. Se não, escreva para a Free Software *
26   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
27   - * 02111-1307, USA. *
28   - * *
29   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  5 +
30 6 $desvio_diretorio = "";
31 7 require_once ("include/clsBase.inc.php");
32 8 require_once ("include/clsListagem.inc.php");
... ...
ieducar/intranet/conexoes_todos_lst.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3 $desvio_diretorio = "";
28 4 require_once ("include/clsBase.inc.php");
29 5 require_once ("include/clsListagem.inc.php");
... ... @@ -44,7 +20,7 @@ class indice extends clsListagem
44 20 function Gerar()
45 21 {
46 22 $this->titulo = "Conexões";
47   -
  23 +
48 24  
49 25 $this->addCabecalhos( array( "Data Hora", "Local do Acesso", "Ip Interno", "Pessoa") );
50 26  
... ... @@ -130,4 +106,4 @@ $pagina-&gt;addForm( $miolo );
130 106  
131 107 $pagina->MakeAll();
132 108  
133   -?>
134 109 \ No newline at end of file
  110 +?>
... ...
ieducar/intranet/download.php
... ... @@ -1,4 +0,0 @@
1   -<?php
2   -
3   -require_once 'includes/download.php'; // Faz uso de $_GET['filename']
4   -exit();
ieducar/intranet/educar_abandono_cad.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3 require_once 'include/clsBase.inc.php';
28 4 require_once 'include/clsCadastro.inc.php';
29 5 require_once 'include/clsBanco.inc.php';
... ...
ieducar/intranet/educar_abandono_tipo_cad.php
... ... @@ -132,7 +132,7 @@ class indice extends clsCadastro
132 132 }
133 133  
134 134 $this->mensagem = "Cadastro n&atilde;o realizado.<br>";
135   - echo "<!--\nErro ao cadastrar clsPmiEducarAbandonoTipo\nvalores obrigat&oacute;rios\nis_numeric( $this->pessoa_logada ) && is_numeric( $this->ref_cod_instituicao ) && is_string( $this->nome )\n-->";
  135 +
136 136 return false;
137 137 }
138 138  
... ... @@ -157,7 +157,7 @@ class indice extends clsCadastro
157 157 }
158 158  
159 159 $this->mensagem = "Edi&ccedil;&atilde;o n&atilde;o realizada.<br>";
160   - echo "<!--\nErro ao editar clsPmiEducarAbandonoTipo\nvalores obrigat&oacute;rios\nif( is_numeric( $this->cod_abandono_tipo ) && is_numeric( $this->pessoa_logada ) )\n-->";
  160 +
161 161 return false;
162 162 }
163 163  
... ... @@ -179,7 +179,7 @@ class indice extends clsCadastro
179 179 }
180 180  
181 181 $this->mensagem = "Exclus&atilde;o n&atilde;o realizada.<br>";
182   - echo "<!--\nErro ao excluir clsPmiEducarAbandonoTipo\nvalores obrigat&oacuterios\nif( is_numeric( $this->cod_abandono_tipo ) && is_numeric( $this->pessoa_logada ) )\n-->";
  182 +
183 183 return false;
184 184 }
185 185 }
... ...
ieducar/intranet/educar_abandono_tipo_det.php
... ... @@ -72,17 +72,10 @@ class indice extends clsDetalhe
72 72 {
73 73 $this->simpleRedirect('educar_abandono_tipo_lst.php');
74 74 }
75   - if (class_exists("clsPmieducarInstituicao"))
76   - {
77   - $obj_instituicao = new clsPmieducarInstituicao($registro["ref_cod_instituicao"]);
78   - $obj_instituicao_det = $obj_instituicao->detalhe();
79   - $registro["ref_cod_instituicao"] = $obj_instituicao_det['nm_instituicao'];
80   - }
81   - else
82   - {
83   - $cod_instituicao = "Erro na gera&ccedil;&atilde;o";
84   - echo "<!--\nErro\nClasse n&atilde;o existente: clsPmieducarInstituicao\n-->";
85   - }
  75 +
  76 + $obj_instituicao = new clsPmieducarInstituicao($registro["ref_cod_instituicao"]);
  77 + $obj_instituicao_det = $obj_instituicao->detalhe();
  78 + $registro["ref_cod_instituicao"] = $obj_instituicao_det['nm_instituicao'];
86 79  
87 80 $obj_permissoes = new clsPermissoes();
88 81 $nivel_usuario = $obj_permissoes->nivel_acesso($this->pessoa_logada);
... ...
ieducar/intranet/educar_abandono_tipo_lst.php
... ... @@ -134,17 +134,9 @@ class indice extends clsListagem
134 134 {
135 135 foreach ( $lista AS $registro )
136 136 {
137   - if( class_exists( "clsPmieducarInstituicao" ) )
138   - {
139   - $obj_cod_instituicao = new clsPmieducarInstituicao( $registro["ref_cod_instituicao"] );
140   - $obj_cod_instituicao_det = $obj_cod_instituicao->detalhe();
141   - $registro["ref_cod_instituicao"] = $obj_cod_instituicao_det["nm_instituicao"];
142   - }
143   - else
144   - {
145   - $registro["ref_cod_instituicao"] = "Erro na gera&ccedil;&atilde;o";
146   - echo "<!--\nErro\nClasse n&atilde;o existente: clsPmieducarInstituicao\n-->";
147   - }
  137 + $obj_cod_instituicao = new clsPmieducarInstituicao( $registro["ref_cod_instituicao"] );
  138 + $obj_cod_instituicao_det = $obj_cod_instituicao->detalhe();
  139 + $registro["ref_cod_instituicao"] = $obj_cod_instituicao_det["nm_instituicao"];
148 140  
149 141 $lista_busca = array(
150 142 "<a href=\"educar_abandono_tipo_det.php?cod_abandono_tipo={$registro["cod_abandono_tipo"]}\">{$registro["nome"]}</a>"
... ...
ieducar/intranet/educar_acervo_assunto_cad.php
1 1 <?php
2 2 //error_reporting(E_ERROR);
3 3 //ini_set("display_errors", 1);
4   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
5   - * *
6   - * @author Prefeitura Municipal de Itajaí *
7   - * @updated 29/03/2007 *
8   - * Pacote: i-PLB Software Público Livre e Brasileiro *
9   - * *
10   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
11   - * ctima@itajai.sc.gov.br *
12   - * *
13   - * Este programa é software livre, você pode redistribuí-lo e/ou *
14   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
15   - * publicada pela Free Software Foundation, tanto a versão 2 da *
16   - * Licença como (a seu critério) qualquer versão mais nova. *
17   - * *
18   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
19   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
20   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
21   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
22   - * *
23   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
24   - * junto com este programa. Se não, escreva para a Free Software *
25   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
26   - * 02111-1307, USA. *
27   - * *
28   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  4 +
29 5  
30 6 require_once ("include/clsBase.inc.php");
31 7 require_once ("include/clsCadastro.inc.php");
... ... @@ -136,7 +112,7 @@ class indice extends clsCadastro
136 112 }
137 113  
138 114 $this->mensagem = "Cadastro n&atilde;o realizado.<br>";
139   - echo "<!--\nErro ao cadastrar clsPmieducarAcervoAssunto\nvalores obrigat&oacute;rios\nis_numeric( $this->pessoa_logada ) && is_string( $this->nm_assunto )\n-->";
  115 +
140 116 return false;
141 117 }
142 118  
... ... @@ -162,7 +138,7 @@ class indice extends clsCadastro
162 138 }
163 139  
164 140 $this->mensagem = "Edi&ccedil;&atilde;o n&atilde;o realizada.<br>";
165   - echo "<!--\nErro ao editar clsPmieducarAcervoAssunto\nvalores obrigat&oacute;rios\nif( is_numeric( $this->cod_acervo_assunto ) && is_numeric( $this->pessoa_logada ) )\n-->";
  141 +
166 142 return false;
167 143 }
168 144  
... ... @@ -188,7 +164,7 @@ class indice extends clsCadastro
188 164 }
189 165  
190 166 $this->mensagem = "Exclus&atilde;o n&atilde;o realizada.<br>";
191   - echo "<!--\nErro ao excluir clsPmieducarAcervoAssunto\nvalores obrigat&oacute;rios\nif( is_numeric( $this->cod_acervo_assunto ) && is_numeric( $this->pessoa_logada ) )\n-->";
  167 +
192 168 return false;
193 169 }
194 170 }
... ...
ieducar/intranet/educar_acervo_assunto_det.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3  
28 4 require_once ("include/clsBase.inc.php");
29 5 require_once ("include/clsDetalhe.inc.php");
... ...
ieducar/intranet/educar_acervo_assunto_lst.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3 require_once ("include/clsBase.inc.php");
28 4 require_once ("include/clsListagem.inc.php");
29 5 require_once ("include/clsBanco.inc.php");
... ...
ieducar/intranet/educar_acervo_autor_cad.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3  
28 4 require_once ("include/clsBase.inc.php");
29 5 require_once ("include/clsCadastro.inc.php");
... ... @@ -90,19 +66,11 @@ class indice extends clsCadastro
90 66 $this->fexcluir = true;
91 67 }
92 68  
93   - if( class_exists( "clsPmieducarBiblioteca" ) )
94   - {
95 69 $obj_ref_cod_biblioteca = new clsPmieducarBiblioteca( $registro["ref_cod_biblioteca"] );
96 70 $det_ref_cod_biblioteca = $obj_ref_cod_biblioteca->detalhe();
97 71 $this->ref_cod_instituicao = $det_ref_cod_biblioteca["ref_cod_instituicao"];
98 72 $this->ref_cod_escola = $det_ref_cod_biblioteca["ref_cod_escola"];
99 73  
100   - }
101   - else
102   - {
103   - $registro["ref_cod_biblioteca"] = "Erro na gera&ccedil;&atilde;o";
104   - }
105   -
106 74 $retorno = "Editar";
107 75 }
108 76 }
... ... @@ -165,7 +133,7 @@ class indice extends clsCadastro
165 133 }
166 134  
167 135 $this->mensagem = "Cadastro n&atilde;o realizado.<br>";
168   - echo "<!--\nErro ao cadastrar clsPmieducarAcervoAutor\nvalores obrigat&oacute;rios\nis_numeric( $this->pessoa_logada ) && is_string( $this->nm_autor )\n-->";
  136 +
169 137 return false;
170 138 }
171 139  
... ... @@ -194,7 +162,7 @@ class indice extends clsCadastro
194 162 }
195 163  
196 164 $this->mensagem = "Edi&ccedil;&atilde;o n&atilde;o realizada.<br>";
197   - echo "<!--\nErro ao editar clsPmieducarAcervoAutor\nvalores obrigatorios\nif( is_numeric( $this->cod_acervo_autor ) && is_numeric( $this->pessoa_logada ) )\n-->";
  165 +
198 166 return false;
199 167 }
200 168  
... ... @@ -220,7 +188,7 @@ class indice extends clsCadastro
220 188 }
221 189  
222 190 $this->mensagem = "Exclus&atilde;o n&atilde;o realizada.<br>";
223   - echo "<!--\nErro ao excluir clsPmieducarAcervoAutor\nvalores obrigatorios\nif( is_numeric( $this->cod_acervo_autor ) && is_numeric( $this->pessoa_logada ) )\n-->";
  191 +
224 192 return false;
225 193 }
226 194 }
... ...
ieducar/intranet/educar_acervo_autor_cad_pop.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3 require_once ("include/clsBase.inc.php");
28 4 require_once ("include/clsCadastro.inc.php");
29 5 require_once ("include/clsBanco.inc.php");
... ... @@ -99,7 +75,7 @@ class indice extends clsCadastro
99 75  
100 76 function Novo()
101 77 {
102   -
  78 +
103 79  
104 80 $obj_permissoes = new clsPermissoes();
105 81 $obj_permissoes->permissao_cadastra( 594, $this->pessoa_logada, 11, "educar_acervo_autor_lst.php" );
... ... @@ -120,7 +96,7 @@ class indice extends clsCadastro
120 96 }
121 97  
122 98 $this->mensagem = "Cadastro n&atilde;o realizado.<br>";
123   - echo "<!--\nErro ao cadastrar clsPmieducarAcervoAutor\nvalores obrigat&oacute;rios\nis_numeric( $this->pessoa_logada ) && is_string( $this->nm_autor )\n-->";
  99 +
124 100 return false;
125 101 }
126 102  
... ...
ieducar/intranet/educar_acervo_autor_det.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3  
28 4 require_once ("include/clsBase.inc.php");
29 5 require_once ("include/clsDetalhe.inc.php");
... ... @@ -74,30 +50,23 @@ class indice extends clsDetalhe
74 50 }
75 51 $obj_permissoes = new clsPermissoes();
76 52 $nivel_usuario = $obj_permissoes->nivel_acesso($this->pessoa_logada);
77   - if( class_exists( "clsPmieducarBiblioteca" ) )
  53 +
  54 + $obj_ref_cod_biblioteca = new clsPmieducarBiblioteca( $registro["ref_cod_biblioteca"] );
  55 + $det_ref_cod_biblioteca = $obj_ref_cod_biblioteca->detalhe();
  56 + $registro["ref_cod_biblioteca"] = $det_ref_cod_biblioteca["nm_biblioteca"];
  57 + $registro["ref_cod_instituicao"] = $det_ref_cod_biblioteca["ref_cod_instituicao"];
  58 + $registro["ref_cod_escola"] = $det_ref_cod_biblioteca["ref_cod_escola"];
  59 + if( $registro["ref_cod_instituicao"] )
78 60 {
79   - $obj_ref_cod_biblioteca = new clsPmieducarBiblioteca( $registro["ref_cod_biblioteca"] );
80   - $det_ref_cod_biblioteca = $obj_ref_cod_biblioteca->detalhe();
81   - $registro["ref_cod_biblioteca"] = $det_ref_cod_biblioteca["nm_biblioteca"];
82   - $registro["ref_cod_instituicao"] = $det_ref_cod_biblioteca["ref_cod_instituicao"];
83   - $registro["ref_cod_escola"] = $det_ref_cod_biblioteca["ref_cod_escola"];
84   - if( $registro["ref_cod_instituicao"] )
85   - {
86   - $obj_ref_cod_instituicao = new clsPmieducarInstituicao( $registro["ref_cod_instituicao"] );
87   - $det_ref_cod_instituicao = $obj_ref_cod_instituicao->detalhe();
88   - $registro["ref_cod_instituicao"] = $det_ref_cod_instituicao["nm_instituicao"];
89   - }
90   - if( $registro["ref_cod_escola"] )
91   - {
92   - $obj_ref_cod_escola = new clsPmieducarEscola();
93   - $det_ref_cod_escola = array_shift($obj_ref_cod_escola->lista($registro["ref_cod_escola"]));
94   - $registro["ref_cod_escola"] = $det_ref_cod_escola["nome"];
95   - }
  61 + $obj_ref_cod_instituicao = new clsPmieducarInstituicao( $registro["ref_cod_instituicao"] );
  62 + $det_ref_cod_instituicao = $obj_ref_cod_instituicao->detalhe();
  63 + $registro["ref_cod_instituicao"] = $det_ref_cod_instituicao["nm_instituicao"];
96 64 }
97   - else
  65 + if( $registro["ref_cod_escola"] )
98 66 {
99   - $registro["ref_cod_biblioteca"] = "Erro na gera&ccedil;&atilde;o";
100   - echo "<!--\nErro\nClasse n&atilde;o existente: clsPmieducarBiblioteca\n-->";
  67 + $obj_ref_cod_escola = new clsPmieducarEscola();
  68 + $det_ref_cod_escola = array_shift($obj_ref_cod_escola->lista($registro["ref_cod_escola"]));
  69 + $registro["ref_cod_escola"] = $det_ref_cod_escola["nome"];
101 70 }
102 71  
103 72 if( $registro["ref_cod_instituicao"] && $nivel_usuario == 1)
... ...
ieducar/intranet/educar_acervo_autor_lst.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3 require_once ("include/clsBase.inc.php");
28 4 require_once ("include/clsListagem.inc.php");
29 5 require_once ("include/clsBanco.inc.php");
... ... @@ -168,46 +144,29 @@ class indice extends clsListagem
168 144 {
169 145 $obj_biblioteca = new clsPmieducarBiblioteca($registro['ref_cod_biblioteca']);
170 146 $det_biblioteca = $obj_biblioteca->detalhe();
171   - // pega detalhes de foreign_keys
172   - if( class_exists( "clsPmieducarEscola" ) )
173   - {
174   - $obj_ref_cod_escola = new clsPmieducarEscola( $det_biblioteca["ref_cod_escola"] );
175   - $det_ref_cod_escola = $obj_ref_cod_escola->detalhe();
176   - $registro["ref_cod_escola"] = $det_ref_cod_escola["nome"];
177   - }
178   - else
179   - {
180   - $registro["ref_cod_escola"] = "Erro na geracao";
181   - echo "<!--\nErro\nClasse nao existente: clsPmieducarEscola\n-->";
182   - }
  147 +
  148 + $obj_ref_cod_escola = new clsPmieducarEscola( $det_biblioteca["ref_cod_escola"] );
  149 + $det_ref_cod_escola = $obj_ref_cod_escola->detalhe();
  150 + $registro["ref_cod_escola"] = $det_ref_cod_escola["nome"];
183 151  
184 152 switch ($nivel_usuario){
185 153 case 1:
186   -
187   - if( class_exists( "clsPmieducarInstituicao" ) && class_exists( "clsPmieducarEscola" ) )
188   - {
189   - $obj_ref_cod_escola = new clsPmieducarEscola( $det_biblioteca["ref_cod_escola"] );
190   - $det_ref_cod_escola = $obj_ref_cod_escola->detalhe();
191   - $registro["ref_cod_instituicao"] = $det_ref_cod_escola["ref_cod_instituicao"];
192   -
193   - $obj_ref_cod_intituicao = new clsPmieducarInstituicao( $det_biblioteca["ref_cod_instituicao"] );
194   - $det_ref_cod_intituicao = $obj_ref_cod_intituicao->detalhe();
195   - $registro["ref_cod_instituicao"] = $det_ref_cod_intituicao["nm_instituicao"];
196   - }
197   - else
198   - {
199   - $registro["ref_cod_instituicao"] = "Erro na geracao";
200   - echo "<!--\nErro\nClasse nao existente: clsPmieducarIntituicao\n-->";
201   - }
202   -
203   -
204   - $this->addLinhas( array(
205   - "<a href=\"educar_acervo_autor_det.php?cod_acervo_autor={$registro["cod_acervo_autor"]}\">{$registro["nm_autor"]}</a>",
206   - "<a href=\"educar_acervo_autor_det.php?cod_acervo_autor={$registro["cod_acervo_autor"]}\">{$det_biblioteca["nm_biblioteca"]}</a>",
207   - "<a href=\"educar_acervo_autor_det.php?cod_acervo_autor={$registro["cod_acervo_autor"]}\">{$registro["ref_cod_escola"]}</a>",
208   - "<a href=\"educar_acervo_autor_det.php?cod_acervo_autor={$registro["cod_acervo_autor"]}\">{$registro["ref_cod_instituicao"]}</a>"
209   - ) );
210   - break;
  154 + $obj_ref_cod_escola = new clsPmieducarEscola( $det_biblioteca["ref_cod_escola"] );
  155 + $det_ref_cod_escola = $obj_ref_cod_escola->detalhe();
  156 + $registro["ref_cod_instituicao"] = $det_ref_cod_escola["ref_cod_instituicao"];
  157 +
  158 + $obj_ref_cod_intituicao = new clsPmieducarInstituicao( $det_biblioteca["ref_cod_instituicao"] );
  159 + $det_ref_cod_intituicao = $obj_ref_cod_intituicao->detalhe();
  160 + $registro["ref_cod_instituicao"] = $det_ref_cod_intituicao["nm_instituicao"];
  161 +
  162 + $this->addLinhas( array(
  163 + "<a href=\"educar_acervo_autor_det.php?cod_acervo_autor={$registro["cod_acervo_autor"]}\">{$registro["nm_autor"]}</a>",
  164 + "<a href=\"educar_acervo_autor_det.php?cod_acervo_autor={$registro["cod_acervo_autor"]}\">{$det_biblioteca["nm_biblioteca"]}</a>",
  165 + "<a href=\"educar_acervo_autor_det.php?cod_acervo_autor={$registro["cod_acervo_autor"]}\">{$registro["ref_cod_escola"]}</a>",
  166 + "<a href=\"educar_acervo_autor_det.php?cod_acervo_autor={$registro["cod_acervo_autor"]}\">{$registro["ref_cod_instituicao"]}</a>"
  167 + ) );
  168 +
  169 + break;
211 170 case 2:
212 171 $this->addLinhas( array(
213 172 "<a href=\"educar_acervo_autor_det.php?cod_acervo_autor={$registro["cod_acervo_autor"]}\">{$registro["nm_autor"]}</a>",
... ...
ieducar/intranet/educar_acervo_cad.php
1 1 <?php
2 2 #error_reporting(E_ALL);
3 3 #ini_set("display_errors", 1);
4   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
5   - * *
6   - * @author Prefeitura Municipal de Itajaí *
7   - * @updated 29/03/2007 *
8   - * Pacote: i-PLB Software Público Livre e Brasileiro *
9   - * *
10   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
11   - * ctima@itajai.sc.gov.br *
12   - * *
13   - * Este programa é software livre, você pode redistribuí-lo e/ou *
14   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
15   - * publicada pela Free Software Foundation, tanto a versão 2 da *
16   - * Licença como (a seu critério) qualquer versão mais nova. *
17   - * *
18   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
19   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
20   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
21   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
22   - * *
23   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
24   - * junto com este programa. Se não, escreva para a Free Software *
25   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
26   - * 02111-1307, USA. *
27   - * *
28   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  4 +
29 5 require_once "include/clsBase.inc.php";
30 6 require_once "include/clsCadastro.inc.php";
31 7 require_once "include/clsBanco.inc.php";
... ... @@ -198,64 +174,45 @@ class indice extends clsCadastro
198 174  
199 175 // Coleção
200 176 $opcoes = array( "" => "Selecione" );
201   - if( class_exists( "clsPmieducarAcervoColecao" ) )
  177 +
  178 + $objTemp = new clsPmieducarAcervoColecao();
  179 + $lista = $objTemp->lista();
  180 + if ( is_array( $lista ) && count( $lista ) )
202 181 {
203   - $objTemp = new clsPmieducarAcervoColecao();
204   - $lista = $objTemp->lista();
205   - if ( is_array( $lista ) && count( $lista ) )
  182 + foreach ( $lista as $registro )
206 183 {
207   - foreach ( $lista as $registro )
208   - {
209   - $opcoes["{$registro['cod_acervo_colecao']}"] = "{$registro['nm_colecao']}";
210   - }
  184 + $opcoes["{$registro['cod_acervo_colecao']}"] = "{$registro['nm_colecao']}";
211 185 }
212 186 }
213   - else
214   - {
215   - echo "<!--\nErro\nClasse clsPmieducarAcervoColecao nao encontrada\n-->";
216   - $opcoes = array( "" => "Erro na geracao" );
217   - }
218 187 $this->campoLista( "ref_cod_acervo_colecao", "Cole&ccedil;&atilde;o", $opcoes, $this->ref_cod_acervo_colecao,"",false,"","<img id='img_colecao' src='imagens/banco_imagens/escreve.gif' style='cursor:hand; cursor:pointer;' border='0' onclick=\"showExpansivelImprimir(500, 200,'educar_acervo_colecao_cad_pop.php',[], 'Coleção')\" />",false,false );
219 188  
220 189 // Idioma
221 190 $opcoes = array( "" => "Selecione" );
222   - if( class_exists( "clsPmieducarAcervoIdioma" ) )
  191 +
  192 + $objTemp = new clsPmieducarAcervoIdioma();
  193 + $lista = $objTemp->lista();
  194 + if ( is_array( $lista ) && count( $lista ) )
223 195 {
224   - $objTemp = new clsPmieducarAcervoIdioma();
225   - $lista = $objTemp->lista();
226   - if ( is_array( $lista ) && count( $lista ) )
  196 + foreach ( $lista as $registro )
227 197 {
228   - foreach ( $lista as $registro )
229   - {
230   - $opcoes["{$registro['cod_acervo_idioma']}"] = "{$registro['nm_idioma']}";
231   - }
  198 + $opcoes["{$registro['cod_acervo_idioma']}"] = "{$registro['nm_idioma']}";
232 199 }
233 200 }
234   - else
235   - {
236   - echo "<!--\nErro\nClasse clsPmieducarAcervoIdioma nao encontrada\n-->";
237   - $opcoes = array( "" => "Erro na geracao" );
238   - }
  201 +
239 202 $this->campoLista( "ref_cod_acervo_idioma", "Idioma", $opcoes, $this->ref_cod_acervo_idioma, "", false, "", "<img id='img_idioma' src='imagens/banco_imagens/escreve.gif' style='cursor:hand; cursor:pointer;' border='0' onclick=\"showExpansivelImprimir(400, 150,'educar_acervo_idioma_cad_pop.php',[], 'Idioma')\" />" );
240 203  
241 204 $opcoes = array( "" => "Selecione" );
242   - if( class_exists( "clsPmieducarAcervoEditora" ) )
  205 +
  206 + $objTemp = new clsPmieducarAcervoEditora();
  207 + $lista = $objTemp->lista();
  208 + if ( is_array( $lista ) && count( $lista ) )
243 209 {
244   - $objTemp = new clsPmieducarAcervoEditora();
245   - $lista = $objTemp->lista();
246   - if ( is_array( $lista ) && count( $lista ) )
  210 + foreach ( $lista as $registro )
247 211 {
248   - foreach ( $lista as $registro )
249   - {
250   - $opcoes["{$registro['cod_acervo_editora']}"] = "{$registro['nm_editora']}";
251   - }
  212 + $opcoes["{$registro['cod_acervo_editora']}"] = "{$registro['nm_editora']}";
252 213 }
253 214 }
254   - else
255   - {
256   - echo "<!--\nErro\nClasse clsPmieducarAcervoEditora nao encontrada\n-->";
257   - $opcoes = array( "" => "Erro na geracao" );
258   - }
  215 +
259 216 $this->campoLista( "ref_cod_acervo_editora", "Editora", $opcoes, $this->ref_cod_acervo_editora, "", false, "", "<img id='img_editora' src='imagens/banco_imagens/escreve.gif' style='cursor:hand; cursor:pointer;' border='0' onclick=\"showExpansivelImprimir(400, 320,'educar_acervo_editora_cad_pop.php',[], 'Editora')\" />" );
260 217  
261 218  
... ... @@ -323,7 +280,7 @@ class indice extends clsCadastro
323 280 $this->simpleRedirect('educar_acervo_lst.php');
324 281 }
325 282 $this->mensagem = "Cadastro n&atilde;o realizado.<br>";
326   - echo "<!--\nErro ao cadastrar clsPmieducarAcervo\nvalores obrigatorios\nis_numeric( $this->ref_cod_exemplar_tipo ) && is_numeric( $this->ref_usuario_cad ) && is_numeric( $this->ref_cod_acervo_colecao ) && is_numeric( $this->ref_cod_acervo_idioma ) && is_numeric( $this->ref_cod_acervo_editora ) && is_string( $this->titulo ) && is_string( $this->isbn )\n-->";
  283 +
327 284 return false;
328 285 }
329 286  
... ... @@ -355,7 +312,7 @@ class indice extends clsCadastro
355 312 $this->simpleRedirect('educar_acervo_lst.php');
356 313 }
357 314 $this->mensagem = "Edi&ccedil;&atilde;o n&atilde;o realizada.<br>";
358   - echo "<!--\nErro ao editar clsPmieducarAcervo\nvalores obrigatorios\nif( is_numeric( $this->cod_acervo ) && is_numeric( $this->ref_usuario_exc ) )\n-->";
  315 +
359 316 return false;
360 317 }
361 318  
... ... @@ -384,7 +341,7 @@ class indice extends clsCadastro
384 341 }
385 342  
386 343 $this->mensagem = "Exclus&atilde;o n&atilde;o realizada.<br>";
387   - echo "<!--\nErro ao excluir clsPmieducarAcervo\nvalores obrigatorios\nif( is_numeric( $this->cod_acervo ) && is_numeric( $this->pessoa_logada ) )\n-->";
  344 +
388 345 return false;
389 346 }
390 347  
... ...
ieducar/intranet/educar_acervo_colecao_cad.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3  
28 4 require_once ("include/clsBase.inc.php");
29 5 require_once ("include/clsCadastro.inc.php");
... ... @@ -170,7 +146,7 @@ class indice extends clsCadastro
170 146 }
171 147  
172 148 $this->mensagem = "Cadastro n&atilde;o realizado.<br>";
173   - echo "<!--\nErro ao cadastrar clsPmieducarAcervoColecao\nvalores obrigatorios\nis_numeric( $this->ref_usuario_cad ) && is_string( $this->nm_colecao )\n-->";
  149 +
174 150 return false;
175 151 }
176 152  
... ... @@ -196,7 +172,7 @@ class indice extends clsCadastro
196 172 }
197 173  
198 174 $this->mensagem = "Edi&ccedil;&atilde;o n&atilde;o realizada.<br>";
199   - echo "<!--\nErro ao editar clsPmieducarAcervoColecao\nvalores obrigatorios\nif( is_numeric( $this->cod_acervo_colecao ) && is_numeric( $this->ref_usuario_exc ) )\n-->";
  175 +
200 176 return false;
201 177 }
202 178  
... ... @@ -222,7 +198,7 @@ class indice extends clsCadastro
222 198 }
223 199  
224 200 $this->mensagem = "Exclus&atilde;o n&atilde;o realizada.<br>";
225   - echo "<!--\nErro ao excluir clsPmieducarAcervoColecao\nvalores obrigatorios\nif( is_numeric( $this->cod_acervo_colecao ) && is_numeric( $this->ref_usuario_exc ) )\n-->";
  201 +
226 202 return false;
227 203 }
228 204 }
... ...
ieducar/intranet/educar_acervo_colecao_cad_pop.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3 require_once ("include/clsBase.inc.php");
28 4 require_once ("include/clsCadastro.inc.php");
29 5 require_once ("include/clsBanco.inc.php");
... ... @@ -63,7 +39,7 @@ class indice extends clsCadastro
63 39 function Inicializar()
64 40 {
65 41 $retorno = "Novo";
66   -
  42 +
67 43  
68 44 $obj_permissoes = new clsPermissoes();
69 45 $obj_permissoes->permissao_cadastra( 593, $this->pessoa_logada, 11, "educar_acervo_colecao_lst.php" );
... ... @@ -85,7 +61,7 @@ class indice extends clsCadastro
85 61  
86 62 function Novo()
87 63 {
88   -
  64 +
89 65  
90 66 $obj_permissoes = new clsPermissoes();
91 67 $obj_permissoes->permissao_cadastra( 593, $this->pessoa_logada, 11, "educar_acervo_colecao_lst.php" );
... ... @@ -112,7 +88,7 @@ class indice extends clsCadastro
112 88 }
113 89  
114 90 $this->mensagem = "Cadastro n&atilde;o realizado.<br>";
115   - echo "<!--\nErro ao cadastrar clsPmieducarAcervoColecao\nvalores obrigatorios\nis_numeric( $this->ref_usuario_cad ) && is_string( $this->nm_colecao )\n-->";
  91 +
116 92 return false;
117 93 }
118 94  
... ...
ieducar/intranet/educar_acervo_colecao_det.php
1 1 <?php
2   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3   - * *
4   - * @author Prefeitura Municipal de Itajaí *
5   - * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
7   - * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9   - * ctima@itajai.sc.gov.br *
10   - * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
15   - * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20   - * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
23   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24   - * 02111-1307, USA. *
25   - * *
26   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2 +
27 3  
28 4 require_once ("include/clsBase.inc.php");
29 5 require_once ("include/clsDetalhe.inc.php");
... ... @@ -62,51 +38,34 @@ class indice extends clsDetalhe
62 38 {
63 39 $this->titulo = "Cole&ccedil&atilde;o - Detalhe";
64 40  
65   -
66 41 $this->cod_acervo_colecao=$_GET["cod_acervo_colecao"];
67 42  
68 43 $tmp_obj = new clsPmieducarAcervoColecao( $this->cod_acervo_colecao );
69 44 $registro = $tmp_obj->detalhe();
70 45  
  46 + $obj_ref_cod_biblioteca = new clsPmieducarBiblioteca( $registro["ref_cod_biblioteca"] );
  47 + $det_ref_cod_biblioteca = $obj_ref_cod_biblioteca->detalhe();
  48 + $registro["ref_cod_biblioteca"] = $det_ref_cod_biblioteca["nm_biblioteca"];
71 49  
72   - if( class_exists( "clsPmieducarBiblioteca" ) )
73   - {
74   - $obj_ref_cod_biblioteca = new clsPmieducarBiblioteca( $registro["ref_cod_biblioteca"] );
75   - $det_ref_cod_biblioteca = $obj_ref_cod_biblioteca->detalhe();
76   - $registro["ref_cod_biblioteca"] = $det_ref_cod_biblioteca["nm_biblioteca"];
77   - if( class_exists( "clsPmieducarInstituicao" ) )
78   - {
79 50 $registro["ref_cod_instituicao"] = $det_ref_cod_biblioteca["ref_cod_instituicao"];
80 51 $obj_ref_cod_instituicao = new clsPmieducarInstituicao( $registro["ref_cod_instituicao"] );
81 52 $det_ref_cod_instituicao = $obj_ref_cod_instituicao->detalhe();
82 53 $registro["ref_cod_instituicao"] = $det_ref_cod_instituicao["nm_instituicao"];
83   - }
84   - else
85   - {
86   - $registro["ref_cod_instituicao"] = "Erro na geracao";
87   - echo "<!--\nErro\nClasse nao existente: clsPmieducarInstituicao\n-->";
88   - }
89   - }
90 54  
91   - if( class_exists( "clsPmieducarEscola" ) )
92   - {
93 55 $registro["ref_cod_escola"] = $det_ref_cod_biblioteca["ref_cod_escola"];
94 56 $obj_ref_cod_escola = new clsPmieducarEscola( $registro["ref_cod_escola"] );
95 57 $det_ref_cod_escola = $obj_ref_cod_escola->detalhe();
96 58 $idpes = $det_ref_cod_escola["ref_idpes"];
97   - if ($idpes)
98   - {
99   - $obj_escola = new clsPessoaJuridica( $idpes );
100   - $obj_escola_det = $obj_escola->detalhe();
101   - $registro["ref_cod_escola"] = $obj_escola_det["fantasia"];
102   - }
103   - else
104   - {
105   - $obj_escola = new clsPmieducarEscolaComplemento( $registro["ref_cod_escola"] );
106   - $obj_escola_det = $obj_escola->detalhe();
107   - $registro["ref_cod_escola"] = $obj_escola_det["nm_escola"];
108   - }
109   - }
  59 +
  60 + if ($idpes) {
  61 + $obj_escola = new clsPessoaJuridica($idpes);
  62 + $obj_escola_det = $obj_escola->detalhe();
  63 + $registro["ref_cod_escola"] = $obj_escola_det["fantasia"];
  64 + } else {
  65 + $obj_escola = new clsPmieducarEscolaComplemento($registro["ref_cod_escola"]);
  66 + $obj_escola_det = $obj_escola->detalhe();
  67 + $registro["ref_cod_escola"] = $obj_escola_det["nm_escola"];
  68 + }
110 69  
111 70 $obj_permissoes = new clsPermissoes();
112 71 $nivel_usuario = $obj_permissoes->nivel_acesso($this->pessoa_logada);
... ...