Interface.php
944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* Created by PhpStorm.
* User: liuziyang
* Date: 14-2-17
* Time: 19:34
*/
interface YHMAuth_User_Interface
{
public function signin($profile, $inputPassword = '', $persistent = 'Y', $append=array());
public function register($profile, $password, array $append = array());
public function signOut($token);
public function associate($profile, array $append = array());
public function isExistAuth($profile);
public function updatePassword($uid, $inputPassword, $profile='', $profile_type=null);
/**
* 修改用户信息
* @param integer $uid
* @param array $userInfo
*/
public function updateInfo($uid, $userInfo);
/**
* 添加一种认证方式
* @param integer $uid
* @param string $profile
* @param int $profile_type
*/
public function addAuth($uid, $profile, $profile_type, $channel, $password='', $account_name='');
}