The Hubzilla
 All Classes Namespaces Files Functions Variables Pages
socgraph.php File Reference

Functions

 poco_load ($xchan= '', $url=null)
 
 count_common_friends ($uid, $xchan)
 
 common_friends ($uid, $xchan, $start=0, $limit=100000000, $shuffle=false)
 
 suggestion_query ($uid, $myxchan, $start=0, $limit=80)
 
 update_suggestions ()
 
 poco ($a, $extended=false)
 

Function Documentation

common_friends (   $uid,
  $xchan,
  $start = 0,
  $limit = 100000000,
  $shuffle = false 
)
count_common_friends (   $uid,
  $xchan 
)
poco (   $a,
  $extended = false 
)
poco_load (   $xchan = '',
  $url = null 
)

poco_load

xchan is your connection We will load their friend list, and store in xlink_xchan your connection hash and xlink_link the hash for each connection If xchan isn't provided we will load the list of people from url who have indicated they are willing to be friends with new folks and add them to xlink with no xlink_xchan.

Old behaviour: (documentation only): Given a contact-id (minimum), load the PortableContacts friend list for that contact, and add the entries to the gcontact (Global Contact) table, or update existing entries if anything (name or photo) has changed. We use normalised urls for comparison which ignore http vs https and www.domain vs domain

Once the global contact is stored add (if necessary) the contact linkage which associates the given uid, cid to the global contact entry. There can be many uid/cid combinations pointing to the same global contact id.

Parameters
string$xchan
string$url

Referenced by Zotlabs\Daemon\Onepoll\run(), and update_suggestions().

suggestion_query (   $uid,
  $myxchan,
  $start = 0,
  $limit = 80 
)
update_suggestions ( )