Foaf
class Foaf
Methods
Add user as follower of an user
No description
Removes the two way connection between first id and second id and leaves a oneway between second and first
No description
No description
Same as get_all_contacts but returns 1-dim array conaining only the user ids
returns all pending contacts
returns all pending contacts from user [overloaded function of get_pending_contacts_to()]
returns all pending contacts to user [overloaded function of get_pending_contacts_to()]
No description
No description
True if ot_id user is a direct contact of the from_id
Returns true of the first passed user has requested the contact for the second and is still pending
Remove user as follower of an user
Details
at line 613
add_follow_user(int $user_following, int $user_to_follow, string $status = 'auto_follow')
Add user as follower of an user
at line 31
bool
connect(int $targetId, int|null $sourceId = null)
No description
at line 109
bool
disconnect(int $first_id, int $second_id = 0, bool $remove_two_way = false)
Removes the two way connection between first id and second id and leaves a oneway between second and first
at line 210
array
getAllContacts(int $fromId, int $targetLevel = 1, string $mode = 'explicit', bool $showHidden = false)
No description
at line 167
array
getConnectionPath(int $targetId, int|null $sourceId = null, int $level = 2)
No description
at line 401
array
get_contact_id_list(int $from_id, int $level = 1)
Same as get_all_contacts but returns 1-dim array conaining only the user ids
at line 305
array
get_pending_contacts(int $user_id, string $direction = 'from', bool $show_hidden = true)
returns all pending contacts
at line 282
array
get_pending_contacts_from(int $user_id, bool $show_hidden = true)
returns all pending contacts from user [overloaded function of get_pending_contacts_to()]
at line 293
array
get_pending_contacts_to(int $user_id, bool $show_hidden = true)
returns all pending contacts to user [overloaded function of get_pending_contacts_to()]
at line 502
bool
hide_connection(int $to_id, int|null $from_id = null)
No description
at line 152
int|null
isConnected(int $targetId, int|null $sourceId = null)
No description
at line 343
bool
is_contact(int $to_id, bool|int $from_id = false, bool|string $only_two_way_connection = 'auto')
True if ot_id user is a direct contact of the from_id
at line 369
bool
is_pending_connection(int $to_id, bool|int $from_id = false, bool $show_hidden = true)
Returns true of the first passed user has requested the contact for the second and is still pending
at line 634
remove_follow_user(int $user_following, int $user_to_follow)
Remove user as follower of an user