Interface.php 944 Bytes
<?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='');
}