IBOS open source
  • Namespace
  • Class

Namespaces

  • application
    • core
      • cache
        • driver
        • provider
      • components
      • controllers
      • engines
        • local
        • sae
      • model
      • modules
      • utils
      • widgets
    • modules
      • article
        • controllers
        • core
        • model
        • utils
      • calendar
        • controllers
        • model
        • utils
      • contact
        • controllers
        • model
        • utils
      • dashboard
        • controllers
        • model
        • utils
      • department
        • components
        • model
        • utils
      • diary
        • components
        • controllers
        • model
        • utils
        • widgets
      • email
        • controllers
        • core
        • model
        • utils
      • main
        • behaviors
        • components
        • controllers
        • model
        • utils
        • widgets
      • message
        • controllers
        • core
          • co
          • wx
            • callback
            • event
        • model
        • utils
      • mobile
        • components
        • controllers
        • utils
      • position
        • components
        • model
        • utils
      • recruit
        • components
        • controllers
        • core
        • model
        • utils
        • widgets
      • role
        • model
        • utils
      • user
        • components
        • controllers
        • model
        • utils
      • vote
        • components
        • controllers
        • model
        • utils
      • weibo
        • controllers
        • core
        • model
        • utils

Classes

  • User
  • UserIdentity
  • UserProfileTracker

Class User

CWebUser
Extended by application\modules\user\components\User
Namespace: application\modules\user\components
Copyright: Copyright © 2012-2013 IBOS Inc
Author: banyanCheung banyan@ibos.com.cn
Located at system/modules/user/components/User.php

Methods summary

public
# init( )

调用全局程序组件基类的初始化方法,取消了父类CWebUser的init方法中关于session的处理 提供基本的cookie验证方法(如果可用),同时更新session

调用全局程序组件基类的初始化方法,取消了父类CWebUser的init方法中关于session的处理 提供基本的cookie验证方法(如果可用),同时更新session

public
# afterLogin( type $fromCookie )

覆盖父类登陆后调用方法,这里更新userstatus表里的最后访问属性

覆盖父类登陆后调用方法,这里更新userstatus表里的最后访问属性

Parameters

$fromCookie
兼容属性
public boolean
# beforeLogout( )

登出前处理操作,删除session数据库记录,更新在线状态。

登出前处理操作,删除session数据库记录,更新在线状态。

Returns

boolean
public boolean
# checkAccess( string $operation, array $params = array(), boolean $allowCaching = true )

检查权限

检查权限

Parameters

$operation
权限验证项目,一般为模块+控制器+动作 module/controller/action
$params
验证规则的参数
$allowCaching
是否缓存起来

Returns

boolean
protected
# updateAuthStatus( )

重写更新在线状态判定。先检查当前连接是否ajax操作,是则跳过

重写更新在线状态判定。先检查当前连接是否ajax操作,是则跳过

protected boolean
# getIsNeedReset( )

是否需要重置密码

是否需要重置密码

Returns

boolean

Properties summary

public boolean $allowAutoLogin

允许自动登录

允许自动登录

# true
protected array $account

账户安全设置

账户安全设置

# array()
IBOS open source API documentation generated by ApiGen