Move .well-known, webfinger, xrd to src/Module/

This commit is contained in:
Philipp Holzer 2019-05-01 00:14:06 +02:00
parent e7f8d8c3b6
commit 90248f6bb7
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
10 changed files with 358 additions and 275 deletions

View file

@ -91,12 +91,24 @@ class User
/**
* @param integer $uid
* @param array $fields
* @return array|boolean User record if it exists, false otherwise
* @throws Exception
*/
public static function getById($uid)
public static function getById($uid, array $fields = [])
{
return DBA::selectFirst('user', [], ['uid' => $uid]);
return DBA::selectFirst('user', $fields, ['uid' => $uid]);
}
/**
* @param string $nickname
* @param array $fields
* @return array|boolean User record if it exists, false otherwise
* @throws Exception
*/
public static function getByNickname($nickname, array $fields = [])
{
return DBA::selectFirst('user', $fields, ['nickname' => $nickname]);
}
/**