added_contacts() documented

This commit is contained in:
Saqib Razzaq 2016-04-15 19:40:30 +05:00
parent 979366d017
commit e7ed57da8a

View file

@ -5694,6 +5694,15 @@ function getSubscriptionsUploadsWeek($uid,$limit=20,$uploadsType="both",$uploads
return $data; return $data;
} }
/**
* Fetches all friends of given user
* @param : { integer } { $user } { id of user to fetch friends against }
*
* @return : { array } { $data } { array with all friends details }
* @since : 15th April, 2016, ClipBucket 2.8.1
* @author : Saqib Razzaq
*/
function added_contacts($user) { function added_contacts($user) {
global $db; global $db;
$data = $db->select(tbl('contacts'),"*","(contact_userid = $user OR userid = $user) AND confirmed = 'yes'"); $data = $db->select(tbl('contacts'),"*","(contact_userid = $user OR userid = $user) AND confirmed = 'yes'");