mode_aqyk_xwAction.php 903 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * 此文件是流程模块【knowledge.知识】对应接口文件。
  4. * 可在页面上创建更多方法如:public funciton testactAjax(),用js.getajaxurl('testact','mode_knowledge|input','flow')调用到对应方法
  5. */
  6. class mode_aqyk_xwClassAction extends inputAction{
  7. protected function savebefore($table, $arr, $id, $addbo){
  8. }
  9. /**
  10. * 重写函数:保存后处理,主要保存其他表数据
  11. * $table String 对应表名
  12. * $arr Array 表单参数
  13. * $id Int 对应表上记录Id
  14. * $addbo Boolean 是否添加时
  15. */
  16. protected function saveafter($table, $arr, $id, $addbo){
  17. }
  18. public function getLMList(){
  19. $lm = m('aqyk_lm')->getall("1=1");
  20. $result = [];
  21. foreach ($lm as $key=> $v){
  22. $result[] = array("name"=>$v['lm_name'],"value"=>$v['id']);
  23. }
  24. return $result;
  25. }
  26. }