Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

menggunakan BaseModel #434

Merged
merged 1 commit into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"autoload": {
"psr-4": {
"App\\Controllers\\": "donjo-app/controllers/",
"App\\Libraries\\": "donjo-app/Libraries/"
"App\\Libraries\\": "donjo-app/Libraries/",
"App\\Models\\": "donjo-app/models/"
}
},
"config": {
Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/Analisis_grafik_model.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class Analisis_grafik_model extends CI_Model
class Analisis_grafik_model extends Model
{
public function autocomplete()
{
Expand Down
4 changes: 3 additions & 1 deletion donjo-app/models/Analisis_import_model.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Analisis_import_model extends CI_Model
use App\Models\BaseModel as Model;

class Analisis_import_model extends Model
{
public function __construct()
{
Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/Analisis_indikator_model.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class Analisis_indikator_model extends CI_Model
class Analisis_indikator_model extends Model
{
public function autocomplete()
{
Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/Analisis_kategori_model.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class Analisis_kategori_model extends CI_Model
class Analisis_kategori_model extends Model
{
public function autocomplete()
{
Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/Analisis_klasifikasi_model.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class Analisis_klasifikasi_model extends CI_Model
class Analisis_klasifikasi_model extends Model
{
public function autocomplete()
{
Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/Analisis_laporan_model.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class Analisis_laporan_model extends CI_Model
class Analisis_laporan_model extends Model
{
public function autocomplete()
{
Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/Analisis_master_model.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class Analisis_master_model extends CI_Model
class Analisis_master_model extends Model
{
public function autocomplete()
{
Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/Analisis_periode_model.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class Analisis_periode_model extends CI_Model
class Analisis_periode_model extends Model
{
public function autocomplete()
{
Expand Down
8 changes: 2 additions & 6 deletions donjo-app/models/Analisis_respon_model.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class Analisis_respon_model extends CI_Model
class Analisis_respon_model extends Model
{
public function __construct()
{
parent::__construct();
}

public function autocomplete()
{
// $sql = "SELECT no_kk FROM tweb_keluarga
Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/Analisis_statistik_jawaban_model.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class Analisis_statistik_jawaban_model extends CI_Model
class Analisis_statistik_jawaban_model extends Model
{
public function autocomplete()
{
Expand Down
9 changes: 9 additions & 0 deletions donjo-app/models/BaseModel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace App\Models;

use CI_Model;

class BaseModel extends CI_Model
{
}
4 changes: 3 additions & 1 deletion donjo-app/models/Config_model.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Config_model extends CI_Model
use App\Models\BaseModel as Model;

class Config_model extends Model
{
public function gawe_surat()
{
Expand Down
4 changes: 3 additions & 1 deletion donjo-app/models/Data_persil_model.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Data_persil_model extends CI_Model
use App\Models\BaseModel as Model;

class Data_persil_model extends Model
{
public function autocomplete()
{
Expand Down
4 changes: 3 additions & 1 deletion donjo-app/models/Export_model.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Export_model extends CI_Model
use App\Models\BaseModel as Model;

class Export_model extends Model
{
public function export_dasar()
{
Expand Down
4 changes: 3 additions & 1 deletion donjo-app/models/Feed_model.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Feed_model extends CI_Model
use App\Models\BaseModel as Model;

class Feed_model extends Model
{
public function list_feeds()
{
Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/First_artikel_m.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class First_artikel_m extends CI_Model
class First_artikel_m extends Model
{
public function get_headline()
{
Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/First_gallery_m.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class First_gallery_m extends CI_Model
class First_gallery_m extends Model
{
public function paging($p = 1)
{
Expand Down
4 changes: 3 additions & 1 deletion donjo-app/models/First_keluarga_m.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class First_keluarga_m extends CI_Model
use App\Models\BaseModel as Model;

class First_keluarga_m extends Model
{
public function list_raskin($tipex = 0)
{
Expand Down
4 changes: 3 additions & 1 deletion donjo-app/models/First_m.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class First_m extends CI_Model
use App\Models\BaseModel as Model;

class First_m extends Model
{
public function siteman()
{
Expand Down
4 changes: 3 additions & 1 deletion donjo-app/models/First_menu_m.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class First_menu_m extends CI_Model
use App\Models\BaseModel as Model;

class First_menu_m extends Model
{
public function list_menu_atas()
{
Expand Down
4 changes: 3 additions & 1 deletion donjo-app/models/First_penduduk_m.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class First_penduduk_m extends CI_Model
use App\Models\BaseModel as Model;

class First_penduduk_m extends Model
{
public function list_data($lap = '', $o = 0)
{
Expand Down
4 changes: 3 additions & 1 deletion donjo-app/models/First_slide_m.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class First_slide_m extends CI_Model
use App\Models\BaseModel as Model;

class First_slide_m extends Model
{
public function slide_show()
{
Expand Down
4 changes: 3 additions & 1 deletion donjo-app/models/Header_model.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Header_model extends CI_Model
use App\Models\BaseModel as Model;

class Header_model extends Model
{
public function get_data()
{
Expand Down
4 changes: 3 additions & 1 deletion donjo-app/models/Import_model.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Import_model extends CI_Model
use App\Models\BaseModel as Model;

class Import_model extends Model
{
public function __construct()
{
Expand Down
4 changes: 3 additions & 1 deletion donjo-app/models/KategoriModel.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class KategoriModel extends CI_Model
use App\Models\BaseModel as Model;

class KategoriModel extends Model
{
protected $table = 'kategori';

Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/Kelompok_master_model.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class Kelompok_master_model extends CI_Model
class Kelompok_master_model extends Model
{
public function autocomplete()
{
Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/Kelompok_model.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class Kelompok_model extends CI_Model
class Kelompok_model extends Model
{
public function autocomplete()
{
Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/Keluarga_model.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class Keluarga_model extends CI_Model
class Keluarga_model extends Model
{
public function autocomplete()
{
Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/Laporan_bulanan_model.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class Laporan_bulanan_model extends CI_Model
class Laporan_bulanan_model extends Model
{
public function __construct()
{
Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/Laporan_penduduk_model.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class Laporan_penduduk_model extends CI_Model
class Laporan_penduduk_model extends Model
{
public function autocomplete()
{
Expand Down
4 changes: 3 additions & 1 deletion donjo-app/models/Laporan_perubahan_model.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Laporan_perubahan_model extends CI_Model
use App\Models\BaseModel as Model;

class Laporan_perubahan_model extends Model
{
public function bulan($bulan)
{
Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/Mandiri_model.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class Mandiri_model extends CI_Model
class Mandiri_model extends Model
{
public function autocomplete()
{
Expand Down
4 changes: 3 additions & 1 deletion donjo-app/models/Modul_model.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Modul_model extends CI_Model
use App\Models\BaseModel as Model;

class Modul_model extends Model
{
public function list_data()
{
Expand Down
4 changes: 3 additions & 1 deletion donjo-app/models/Pamong_model.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Pamong_model extends CI_Model
use App\Models\BaseModel as Model;

class Pamong_model extends Model
{
public function list_data()
{
Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/Penduduk_model.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class Penduduk_model extends CI_Model
class Penduduk_model extends Model
{
public function autocomplete()
{
Expand Down
3 changes: 2 additions & 1 deletion donjo-app/models/Plan_area_model.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use App\Libraries\Paging;
use App\Models\BaseModel as Model;

class Plan_area_model extends CI_Model
class Plan_area_model extends Model
{
public function autocomplete()
{
Expand Down
Loading
Loading