UserInfo.class.php 873 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace Cas\Dao;
  3. use KIF\Dao\DBAgileDev;
  4. use KIF\Core\Request;
  5. /**
  6. *
  7. * cas活动平台 用户表
  8. *
  9. * @author lihuanchun@qq.com
  10. *
  11. */
  12. class UserInfo extends DBAgileDev {
  13. protected $tableName = 'user_info';
  14. /**
  15. * 数据库里的真实字段
  16. * @var array
  17. */
  18. protected $other_field = array(
  19. 'passport_uid',
  20. 'groupid',
  21. 'is_new',
  22. 'nickname',
  23. 'localRemark'
  24. );
  25. /**
  26. * NEW_USER 新用户
  27. * @var int
  28. */
  29. const NEW_USER = 0;
  30. /**
  31. * OLD_USER 老用户
  32. * @var int
  33. */
  34. const OLD_USER = 1;
  35. public static $userStatus= array(
  36. self::NEW_USER => array(
  37. 'desc' => '新用户',
  38. 'kw' => 'NEW_USER',
  39. ),
  40. self::OLD_USER => array(
  41. 'desc' => '老用户',
  42. 'kw' => 'OLD_USER',
  43. ),
  44. );
  45. /**
  46. * 用户状态
  47. * @return array
  48. */
  49. public static function getUserStatus() {
  50. return self::$userStatus;
  51. }
  52. }