Create Model\Register

- Add Model\User::exists method
This commit is contained in:
Hypolite Petovan 2018-10-14 11:34:34 -04:00
parent 7f143c3159
commit 123992384b
2 changed files with 142 additions and 0 deletions

View file

@ -31,6 +31,17 @@ require_once 'include/text.php';
*/
class User
{
/**
* Returns true if a user record exists with the provided id
*
* @param integer $uid
* @return boolean
*/
public static function exists($uid)
{
return DBA::exists('user', ['uid' => $uid]);
}
/**
* @brief Returns the user id of a given profile url
*