| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Model_power extends Lin_Model
- {
- function __construct(){
- parent::__construct();
- $this->load->database();
- $this->table = 'power';
- $this->load_table('power');
- }
- /** 通过名称查找 */
- public function get_powertext($powertext)
- {
- return $this->find("powertext like '%$powertext%'");
- }
- public function _lyapi(){
- $type_list = [
- [
- 'id'=>100001,
- 'title'=>"仓库管理",
- 'sort'=>10,
- ]
- ];
- $lyapi_list = [
- [
- 'id'=>1,
- 'classid'=>100001,
- 'shortname'=>'cksccktp',
- 'title'=>"上传出库图片",
- 'sort'=>10,
- ],
- [
- 'id'=>2,
- 'classid'=>100001,
- 'shortname'=>'wxbd',
- 'title'=>"允许快捷登录",
- 'sort'=>10,
- ]
- ];
- return [
- 'type_list' => $type_list,
- 'lyapi_list' => $lyapi_list,
- ];
- }
- } //end class
|