Skip to content

sananirajabov/FindPairGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FindPairGame

Find Pair Game in C#

public function getContacts(IUser $user, $filter) { $allContacts = $this->contactsManager->search($filter ?: '', [ 'UID', 'FN', 'EMAIL', ]);

	$sharedContacts = [];

    $conn = \OC::$server->getDatabaseConnection();
    $sharedWith = $conn->executeQuery('SELECT * FROM oc_share');

    while ($row = $sharedWith->fetch()) {
        for ($i = 0; $i < count($allContacts); $i++) {
            if ($row['share_with'] == $allContacts[$i]['UID']) {
                $sharedContacts[] = $allContacts[$i];
            }
        }
    }

	$entries = array_map(function(array $contact) {
		return $this->contactArrayToEntry($contact);
	}, $sharedContacts);

	return $this->filterContacts(
		$user,
		$entries,
        $filter
	);
}

About

Find Pair Game in C#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages