all endpoints are now working

This commit is contained in:
Michael 2018-09-23 17:29:31 +00:00
parent feeec908d3
commit 8c7e5bb776
6 changed files with 285 additions and 24 deletions

View file

@ -28,6 +28,19 @@ require_once 'include/dba.php';
class Profile
{
/**
* @brief Returns default profile for a given user id
*
* @param integer User ID
*
* @return array Profile data
*/
public static function getProfileForUser($uid)
{
$profile = DBA::selectFirst('profile', [], ['uid' => $uid, 'is-default' => true]);
return $profile;
}
/**
* @brief Returns a formatted location string from the given profile array
*