EventProc.php 778 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace loyalsoft;
  3. /**
  4. * 框架封装的一部分通用/常见Event.
  5. * @version
  6. * 1.0.0 Created at 2017-8-28. by --gwang
  7. * @author gwang (mail@wanggangzero.cn)
  8. * @copyright ? 2017-8-28, SJZ LoyalSoft Corporation & gwang. All rights reserved.
  9. */
  10. class EventProc
  11. {
  12. //put your code here
  13. static function Init()
  14. {
  15. Event::register('onpay', UserProfile::OnPay);
  16. }
  17. /**
  18. * 收到请求
  19. */
  20. static function OnRequest()
  21. {
  22. }
  23. /**
  24. * 处理完毕准备返回
  25. */
  26. static function AfterResponse()
  27. {
  28. }
  29. /**
  30. * 当天第一次登录
  31. */
  32. static function OnNewDay()
  33. {
  34. }
  35. /**
  36. * 当周第一次登录(周一)
  37. */
  38. static function OnNewWeek()
  39. {
  40. }
  41. }