本文整理汇总了PHP中SocialManager::invitation_denied方法的典型用法代码示例。如果您正苦于以下问题:PHP SocialManager::invitation_denied方法的具体用法?PHP SocialManager::invitation_denied怎么用?PHP SocialManager::invitation_denied使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SocialManager
的用法示例。
在下文中一共展示了SocialManager::invitation_denied方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: denied_invitation
public function denied_invitation($username, $password, $userfriend_id)
{
if ($this->verifyUserPass($username, $password) == "valid") {
$user_id = UserManager::get_user_id_from_username($username);
SocialManager::invitation_denied($userfriend_id, $user_id);
return get_lang('InvitationDenied');
}
return get_lang('InvalidId');
}
示例2: intval
}
break;
case 'deny_friend':
if (api_is_anonymous()) {
echo '';
break;
}
if (isset($_POST['is_my_friend'])) {
$relation_type = USER_RELATION_TYPE_FRIEND;
//my friend
} else {
$relation_type = USER_RELATION_TYPE_UNKNOW;
//Contact unknown
}
if (isset($_POST['denied_friend_id'])) {
SocialManager::invitation_denied($_POST['denied_friend_id'], $current_user_id);
Display::display_confirmation_message(api_xml_http_response_encode(get_lang('InvitationDenied')));
}
break;
case 'delete_friend':
if (api_is_anonymous()) {
echo '';
break;
}
$my_delete_friend = intval($_POST['delete_friend_id']);
if (isset($_POST['delete_friend_id'])) {
SocialManager::remove_user_rel_user($my_delete_friend);
}
break;
case 'show_my_friends':
if (api_is_anonymous()) {
示例3: intval
$my_denied_current_friend = Security::remove_XSS($_POST['denied_friend_id']);
$my_delete_friend = Security::remove_XSS($_POST['delete_friend_id']);
$friend_id_qualify = Security::remove_XSS($_POST['user_id_friend_q']);
$type_friend_qualify = Security::remove_XSS($_POST['type_friend_q']);
//filtered?
$is_my_friend = Security::remove_XSS($_POST['is_my_friend']);
//filtered?
if (isset($_POST['is_my_friend'])) {
$relation_type = USER_RELATION_TYPE_FRIEND;
//my friend
} else {
$relation_type = USER_RELATION_TYPE_UNKNOW;
//Contact unknown
}
if (isset($_POST['denied_friend_id'])) {
SocialManager::invitation_denied($my_denied_current_friend, $current_user_id);
Display::display_confirmation_message(api_xml_http_response_encode(get_lang('InvitationDenied')));
}
break;
case 'delete_friend':
if (api_is_anonymous()) {
echo '';
break;
}
$my_delete_friend = intval($_POST['delete_friend_id']);
if (isset($_POST['delete_friend_id'])) {
SocialManager::remove_user_rel_user($my_delete_friend);
}
break;
case 'show_my_friends':
if (api_is_anonymous()) {