get_avatar() public method

Get avatar
public get_avatar ( integer $user_id, boolean $query = false ) : string
$user_id integer User ID of the user you want to retrieve the avatar for
$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 string
Esempio n. 1
0
File: pm.php Progetto: MrAdder/phpbb
 /**
  * Get the user's avatar
  */
 public function get_avatar()
 {
     return $this->user_loader->get_avatar($this->get_data('from_user_id'), false, true);
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function get_avatar()
 {
     return $this->user_loader->get_avatar($this->item_id, false, true);
 }