Profile.php
797 Bytes
<?php
/**
* Created by PhpStorm.
* User: Ziy
* Date: 14/8/29
* Time: 上午9:13
*/
class YHMPassport_Profile
{
static function info($uid)
{
$profileInfo = YHMPassport_Models_Profile_Client::getByUid($uid);
$authList = YHMPassport_Models_Auth_Client::getAuthListByUid($uid);
foreach ($authList as $authKey => $authVal) {
if (isset(YHMConfig_Passport::$profileTypeKey[$authVal['profile_type']])) {
$_authVal = array(
'profile' => $authVal['profile'],
'is_active' => $authVal['is_active']
);
$profileInfo['profile_auth_list'][YHMConfig_Passport::$profileTypeKey[$authVal['profile_type']]] = $_authVal;
}
}
return $profileInfo;
}
}