Config.php 426 B

12345678910111213141516171819
  1. <?php namespace Channel\Lib;
  2. use Dever;
  3. use Dever\Project;
  4. use Manage\Lib\Auth;
  5. class Config extends Auth
  6. {
  7. public function getTree()
  8. {
  9. $data = Dever::db('config', 'channel')->select([]);
  10. $result = array();
  11. $result[] = array
  12. (
  13. 'id' => 'root',
  14. 'name' => '全部配置',
  15. 'children' => $data,
  16. );
  17. return $result;
  18. }
  19. }