mode_worcAction.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. /**
  3. * 此文件是流程模块【worc.文档分区】对应控制器接口文件。
  4. */
  5. class mode_worcClassAction extends inputAction{
  6. //获取分区列表
  7. public function getworcAjax()
  8. {
  9. return m('worc')->getmywroc();
  10. }
  11. /**
  12. * 获取文件
  13. */
  14. public function getfiledataAjax()
  15. {
  16. return m('word')->getdata();
  17. }
  18. /**
  19. * 保存上传的文件
  20. */
  21. public function savefileAjax()
  22. {
  23. m('word')->savefile();
  24. echo 'ok';
  25. }
  26. /**
  27. * 创建文件夹
  28. */
  29. public function createfolderAjax()
  30. {
  31. $cqid = (int)$this->post('cqid');
  32. $typeid = (int)$this->post('typeid','0');
  33. $name = $this->post('name');
  34. m('word')->createfolder($name, $cqid, $typeid);
  35. }
  36. /**
  37. * 删除
  38. */
  39. public function delfileAjax()
  40. {
  41. $id = (int)$this->post('id','0');
  42. return m('word')->delword($id);
  43. }
  44. /**
  45. * 共享
  46. */
  47. public function sharefileAjax()
  48. {
  49. m('word')->sharefile();
  50. }
  51. public function movegetAjax()
  52. {
  53. return m('word')->getworcfolder();
  54. }
  55. public function movefileAjax()
  56. {
  57. return m('word')->movefile();
  58. }
  59. public function getmyinfoAjax()
  60. {
  61. return array(
  62. 'uid' => 'u'.$this->adminid.'',
  63. 'uname' => $this->adminname,
  64. );
  65. }
  66. }
粤ICP备19079148号