PHP Class AccountAction, thinksns

Author: Nonant
Inheritance: extends Action
Mostrar archivo Open project: medz/thinksns-4

Public Methods

Method Description
_empty ( string $extend ) 扩展信息设置页面
alipayNotify ( )
alipayReturn ( )
authenticate ( ) 申请认证
avatar ( ) 头像设置页面
bind ( ) 帐号绑定
blacklist ( ) 黑名单设置
delverify ( ) : boolean 注销认证
doAuthenticate ( ) 提交申请认证
doBindingEmail ( ) 绑定|更换邮箱
doBindingMobile ( ) 手机绑定设置
doEditUserCategory ( ) 执行修改用户身份操作
doModifyPassword ( ) : json 修改登录用户账号密码操作
doSaveAvatar ( ) : json 保存登录用户的头像设置操作
doSaveAvatars ( ) : json 保存微吧图标
doSaveDomain ( ) : json 保存用户个性域名操作
doSavePrivacy ( ) : json 保存登录用户隐私设置操作
doSaveProfile ( ) : json 保存基本信息操作
doSaveUploadAvatar ( ) : string 保存登录用户的头像设置操作,Flash上传
do_scorecharge ( )
domain ( ) 个性域名设置页面
editUserCategory ( ) 修改用户身份
getCaptcha ( ) 获取验证码
index ( ) 基本设置页面
notify ( ) 通知设置
privacy ( ) 隐私设置页面
scorecharge ( )
scoredetail ( ) *public function getCaptcha2() { $type = t($_POST ['type']); if (!in_array($type, array( 'mobile', 'email' ))) { $this->ajaxReturn(null, '参数错误', 0); } $msg = ''; $result = false; $model = model('Captcha'); switch ($type) { case 'mobile' : $mobile = t($_POST ['mobile']); $result = $model->sendLoginCode($mobile); $msg = $model->getError(); break; case 'email' : $email = t($_POST ['email']); $result = $model->sendEmailCode($email); $msg = $model->getError(); if ($result) { $map ['communication'] = $email; $map ['type'] = 5; $rand = $model->where($map)->order('captcha_id DESC')->getField('rand'); $config ['uname'] = getUserName($this->mid); $config ['rand'] = $rand; $config ['date'] = date('Y-m-d', time()); model('Notify')->sendNotify($this->mid, 'email_verification', $config); model('Notify')->sendNotifyChangeEmail($this->mid, 'email_verification', $config, $email); } break; }
scorelevel ( )
scorerule ( )
scoretransfer ( )
security ( ) 账号安全设置页面
tag ( ) 标签设置页面

Protected Methods

Method Description
_initialize ( ) 控制器初始化,实例化用户档案模型对象
alipay ( array $data )

Private Methods

Method Description
_getUserProfile ( ) : 登录用户的档案信息 获取登录用户的档案信息

Method Details

_empty() public method

扩展信息设置页面
public _empty ( string $extend )
$extend string 扩展类目名称(为插件准备)

_initialize() protected method

控制器初始化,实例化用户档案模型对象
protected _initialize ( )

alipay() protected method

protected alipay ( array $data )
$data array

alipayNotify() public method

public alipayNotify ( )

alipayReturn() public method

public alipayReturn ( )

authenticate() public method

申请认证
public authenticate ( )

avatar() public method

头像设置页面
public avatar ( )

bind() public method

帐号绑定
public bind ( )

blacklist() public method

黑名单设置
public blacklist ( )

delverify() public method

注销认证
public delverify ( ) : boolean
return boolean 操作是否成功 1:成功 0:失败

doAuthenticate() public method

提交申请认证
public doAuthenticate ( )

doBindingEmail() public method

绑定|更换邮箱
Author: Medz Seven ([email protected])
public doBindingEmail ( )

doBindingMobile() public method

手机绑定设置
Author: Medz Seven ([email protected])
public doBindingMobile ( )

doEditUserCategory() public method

执行修改用户身份操作
public doEditUserCategory ( )

doModifyPassword() public method

修改登录用户账号密码操作
public doModifyPassword ( ) : json
return json 返回操作后的JSON信息数据

doSaveAvatar() public method

保存登录用户的头像设置操作
public doSaveAvatar ( ) : json
return json 返回操作后的JSON信息数据

doSaveAvatars() public method

保存微吧图标
public doSaveAvatars ( ) : json
return json 返回操作后的JSON信息数据

doSaveDomain() public method

保存用户个性域名操作
public doSaveDomain ( ) : json
return json 返回操作后的JSON信息数据

doSavePrivacy() public method

保存登录用户隐私设置操作
public doSavePrivacy ( ) : json
return json 返回操作后的JSON信息数据

doSaveProfile() public method

保存基本信息操作
public doSaveProfile ( ) : json
return json 返回操作后的JSON信息数据

doSaveUploadAvatar() public method

保存登录用户的头像设置操作,Flash上传
public doSaveUploadAvatar ( ) : string
return string 操作后的反馈信息

do_scorecharge() public method

public do_scorecharge ( )

domain() public method

个性域名设置页面
public domain ( )

editUserCategory() public method

修改用户身份
public editUserCategory ( )

getCaptcha() public method

获取验证码
Author: Medz Seven ([email protected])
public getCaptcha ( )

index() public method

基本设置页面
public index ( )

notify() public method

通知设置
public notify ( )

privacy() public method

隐私设置页面
public privacy ( )

scorecharge() public method

public scorecharge ( )

scoredetail() public method

if ($result) { empty($msg) && $msg = '发生成功'; $this->ajaxReturn(null, $msg, 1); } else { empty($msg) && $msg = '发送失败'; $this->ajaxReturn(null, $msg, 0); } }
public scoredetail ( )

scorelevel() public method

public scorelevel ( )

scorerule() public method

public scorerule ( )

scoretransfer() public method

public scoretransfer ( )

security() public method

账号安全设置页面
public security ( )

tag() public method

标签设置页面
public tag ( )