Stud.IP  2.5 Revision
contact.inc.php File Reference

Namespaces

 studip_core
 

Functions

if(Config::get() ->getValue('CALENDAR_GROUP_ENABLE')) MakeUniqueContactID ()
 
 MakeUniqueUserinfoID ()
 
 ChangeBuddy ($contact_id)
 
 RemoveBuddy ($username)
 
 RemoveUserFromBuddys ($user_id)
 
 CheckBuddy ($username, $owner_id=FALSE)
 
 GetNumberOfBuddies ()
 
 GetBuddyIDs ($user_id)
 
 GetSizeofBook ()
 
 GetSizeOfBookByGroup ()
 
 GetSizeOfBookByLetter ()
 
 AddBuddy ($username)
 
 AddNewContact ($user_id)
 
 AddNewUserinfo ($contact_id, $name, $content)
 
 GetExtraUserinfo ($contact_id)
 
 GetUserInfo ($user_id)
 
 GetinstInfo ($user_id)
 
 ShowUserInfo ($contact_id)
 
 ShowContact ($contact_id)
 
 SearchResults ($search_exp)
 
 ShowEditContact ($contact_id)
 
 MoveUserinfo ($userinfo_id)
 
 UpdateUserinfo ($name, $content, $userinfo_id)
 
 ResortUserinfo ($contact_id)
 
 DeleteUserinfo ($userinfo_id)
 
 DeleteContact ($contact_id)
 
 DeleteAdressbook ($owner_id)
 
 PrintEditContact ($edit_id)
 
 PrintAllContact ($filter="")
 
 switch_member_cal ($user_id, $permission)
 

Function Documentation

◆ AddBuddy()

AddBuddy (   $username)

When adding a buddy this way, triggers a BuddyDidAdd notification using the new contact_id as subject.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddNewContact()

AddNewContact (   $user_id)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddNewUserinfo()

AddNewUserinfo (   $contact_id,
  $name,
  $content 
)
Here is the call graph for this function:

◆ ChangeBuddy()

ChangeBuddy (   $contact_id)

Toggles the buddy-flag for the passed contact.

When adding a buddy this way, triggers a BuddyDidAdd notification using the contact_id as subject.

Parameters
string$contact_idthe md5-hash of the contact (not the user_id!)
Returns
bool
Here is the call graph for this function:

◆ CheckBuddy()

CheckBuddy (   $username,
  $owner_id = FALSE 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeleteAdressbook()

DeleteAdressbook (   $owner_id)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeleteContact()

DeleteContact (   $contact_id)
Here is the call graph for this function:

◆ DeleteUserinfo()

DeleteUserinfo (   $userinfo_id)
Here is the call graph for this function:

◆ GetBuddyIDs()

GetBuddyIDs (   $user_id)
Here is the call graph for this function:

◆ GetExtraUserinfo()

GetExtraUserinfo (   $contact_id)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetinstInfo()

GetinstInfo (   $user_id)
Here is the call graph for this function:

◆ GetNumberOfBuddies()

GetNumberOfBuddies ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSizeofBook()

GetSizeofBook ( )
Here is the call graph for this function:

◆ GetSizeOfBookByGroup()

GetSizeOfBookByGroup ( )
Here is the call graph for this function:

◆ GetSizeOfBookByLetter()

GetSizeOfBookByLetter ( )
Here is the call graph for this function:

◆ GetUserInfo()

GetUserInfo (   $user_id)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MakeUniqueContactID()

if (Config::get() ->getValue( 'CALENDAR_GROUP_ENABLE')) MakeUniqueContactID ( )

built a not existing ID

private

Returns
string
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MakeUniqueUserinfoID()

MakeUniqueUserinfoID ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MoveUserinfo()

MoveUserinfo (   $userinfo_id)
Here is the call graph for this function:

◆ PrintAllContact()

PrintAllContact (   $filter = "")
Here is the call graph for this function:

◆ PrintEditContact()

PrintEditContact (   $edit_id)
Here is the call graph for this function:

◆ RemoveBuddy()

RemoveBuddy (   $username)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ RemoveUserFromBuddys()

RemoveUserFromBuddys (   $user_id)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ResortUserinfo()

ResortUserinfo (   $contact_id)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SearchResults()

SearchResults (   $search_exp)

Search for an user containing the passed string in his first name, last name or username, excluding the searching user itself an all invisible users Returns a HTML select-box

Parameters
string$search_expthe search string to search for
Returns
string a HTML select-box containing all results
Here is the call graph for this function:

◆ ShowContact()

ShowContact (   $contact_id)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ShowEditContact()

ShowEditContact (   $contact_id)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ShowUserInfo()

ShowUserInfo (   $contact_id)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ switch_member_cal()

switch_member_cal (   $user_id,
  $permission 
)
Here is the call graph for this function:

◆ UpdateUserinfo()

UpdateUserinfo (   $name,
  $content,
  $userinfo_id 
)
Here is the call graph for this function: