docblock
This commit is contained in:
parent
d5e22f7ac5
commit
b38edbc353
@ -736,7 +736,20 @@ class SemanticScuttle_Service_User extends SemanticScuttle_DbService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function isValidUsername($username) {
|
/**
|
||||||
|
* Check if the given username is valid syntactically.
|
||||||
|
* This function does not check if the username is already
|
||||||
|
* in use or reserved.
|
||||||
|
*
|
||||||
|
* @param string $username Name to check
|
||||||
|
*
|
||||||
|
* @return boolean True if the username is valid
|
||||||
|
*
|
||||||
|
* @see isReserved()
|
||||||
|
* @see existsUserWithUsername()
|
||||||
|
*/
|
||||||
|
public function isValidUsername($username)
|
||||||
|
{
|
||||||
if (strlen($username) < 4) {
|
if (strlen($username) < 4) {
|
||||||
return false;
|
return false;
|
||||||
}elseif (strlen($username) > 24) {
|
}elseif (strlen($username) > 24) {
|
||||||
|
Loading…
Reference in New Issue
Block a user