Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
17
application/models/app_model.php
Normal file
17
application/models/app_model.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
class app_model extends MY_Model
|
||||
{
|
||||
private $table = 've_app_config';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function findByAppId($appId)
|
||||
{
|
||||
return $this->rest->db->where('ap_id', $appId)->select('ap_id appId, ap_name name, ap_recommend customInfo')->get($this->table);
|
||||
}
|
||||
}
|
||||
27
application/models/category_model.php
Normal file
27
application/models/category_model.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
class category_model extends MY_Model
|
||||
{
|
||||
private $table = 've_category';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function findCategoriesByAppId($appId)
|
||||
{
|
||||
return $this->rest->db->where('ap_id', $appId)->
|
||||
select('cg_id id,
|
||||
ap_id appId,
|
||||
cg_parent parentId,
|
||||
cg_depth depth,
|
||||
cg_name name,
|
||||
cg_subname subname,
|
||||
cg_order sort,
|
||||
cg_image_url imgUrl,
|
||||
cg_station_url stationUrl,
|
||||
cg_station_dptitle dpTitle')->get($this->table);
|
||||
}
|
||||
}
|
||||
10
application/models/index.html
Normal file
10
application/models/index.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
2643
application/models/ion_auth_model.php
Normal file
2643
application/models/ion_auth_model.php
Normal file
File diff suppressed because it is too large
Load Diff
23
application/models/station_schedule_model.php
Normal file
23
application/models/station_schedule_model.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
class station_schedule_model extends MY_Model
|
||||
{
|
||||
private $table = 'app_station_schedule';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function findSchedulesByCategoryIdAndDayName($categoryId, $dayName)
|
||||
{
|
||||
return $this->rest->db->where('categoryId', $categoryId)->where('dayName', $dayName)->get($this->table);
|
||||
}
|
||||
|
||||
public function insertSchedules($categoryId, $dayName, $data) {
|
||||
$this->rest->db->where('categoryId', $categoryId)->where('dayName', $dayName)->delete($this->table);
|
||||
$this->rest->db->insert_batch($this->table, $data);
|
||||
return $this->rest->db->affected_rows();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user