1
0

mode_kqdkjlAction.php 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * 此文件是流程模块【kqdkjl.打卡记录】对应接口文件。
  4. * 可在页面上创建更多方法如:public funciton testactAjax(),用js.getajaxurl('testact','mode_kqdkjl|input','flow')调用到对应方法
  5. */
  6. class mode_kqdkjlClassAction extends inputAction{
  7. /**
  8. * 重写函数:保存前处理,主要用于判断是否可以保存
  9. * $table String 对应表名
  10. * $arr Array 表单参数
  11. * $id Int 对应表上记录Id 0添加时,大于0修改时
  12. * $addbo Boolean 是否添加时
  13. * return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
  14. */
  15. protected function savebefore($table, $arr, $id, $addbo){
  16. }
  17. /**
  18. * 重写函数:保存后处理,主要保存其他表数据
  19. * $table String 对应表名
  20. * $arr Array 表单参数
  21. * $id Int 对应表上记录Id
  22. * $addbo Boolean 是否添加时
  23. */
  24. protected function saveafter($table, $arr, $id, $addbo){
  25. }
  26. }
粤ICP备19079148号