Model_power.php 916 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. class Model_power extends Lin_Model
  3. {
  4. function __construct(){
  5. parent::__construct();
  6. $this->load->database();
  7. $this->table = 'power';
  8. $this->load_table('power');
  9. }
  10. /** 通过名称查找 */
  11. public function get_powertext($powertext)
  12. {
  13. return $this->find("powertext like '%$powertext%'");
  14. }
  15. public function _lyapi(){
  16. $type_list = [
  17. [
  18. 'id'=>100001,
  19. 'title'=>"仓库管理",
  20. 'sort'=>10,
  21. ]
  22. ];
  23. $lyapi_list = [
  24. [
  25. 'id'=>1,
  26. 'classid'=>100001,
  27. 'shortname'=>'cksccktp',
  28. 'title'=>"上传出库图片",
  29. 'sort'=>10,
  30. ],
  31. [
  32. 'id'=>2,
  33. 'classid'=>100001,
  34. 'shortname'=>'wxbd',
  35. 'title'=>"允许快捷登录",
  36. 'sort'=>10,
  37. ]
  38. ];
  39. return [
  40. 'type_list' => $type_list,
  41. 'lyapi_list' => $lyapi_list,
  42. ];
  43. }
  44. } //end class