mirror of
https://github.com/friendica/friendica
synced 2025-04-22 01:50:11 +00:00
Create Model\Register
- Add Model\User::exists method
This commit is contained in:
parent
7f143c3159
commit
123992384b
2 changed files with 142 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue