Prado\Security\TDbUser::createUser PHP Method

createUser() abstract public method

This method usually needs to retrieve necessary user information (e.g. role, name, rank, etc.) from the user database according to the specified username. The newly created user instance should be initialized with these information. If the username is invalid (not found in the user database), null should be returned. You may use {@link getDbConnection DbConnection} to deal with database.
abstract public createUser ( $username ) : TDbUser
return TDbUser the newly created and initialized user instance
    public abstract function createUser($username);