Get a user row from our users cache
public get_user ( integer $user_id, boolean $query = false ) : array | boolean | ||
$user_id | integer | User ID of the user you want to retreive |
$query | boolean | Should we query the database if this user has not yet been loaded? Typically this should be left as false and you should make sure you load users ahead of time with load_users() |
return | array | boolean | Row from the database of the user or Anonymous if the user wasn't loaded/does not exist or bool False if the anonymous user was not loaded |