當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SocialManager::invitation_denied方法代碼示例

本文整理匯總了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');
 }
開發者ID:ilosada,項目名稱:chamilo-lms-icpna,代碼行數:9,代碼來源:cm_webservice_user.php

示例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()) {
開發者ID:annickvdp,項目名稱:Chamilo1.9.10,代碼行數:31,代碼來源:social.ajax.php

示例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()) {
開發者ID:ilosada,項目名稱:chamilo-lms-icpna,代碼行數:31,代碼來源:social.ajax.php


注:本文中的SocialManager::invitation_denied方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。