Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user