phpBB

Code Changes

File: phpbb/notification/type/group_request.php

  Unmodified   Added   Modified   Removed
Line 26Line 26
	/**
* {@inheritdoc}
*/

	/**
* {@inheritdoc}
*/

	public static $notification_option = array(

	static public $notification_option = array(

		'lang'	=> 'NOTIFICATION_TYPE_GROUP_REQUEST',
);

		'lang'	=> 'NOTIFICATION_TYPE_GROUP_REQUEST',
);

 

/** @var \phpbb\user_loader */
protected $user_loader;

public function set_user_loader(\phpbb\user_loader $user_loader)
{
$this->user_loader = $user_loader;
}


/**
* {@inheritdoc}


/**
* {@inheritdoc}

Line 50Line 58
	/**
* {@inheritdoc}
*/

	/**
* {@inheritdoc}
*/

	public static function get_item_id($group)

	static public function get_item_id($group)

	{
return (int) $group['user_id'];
}

	{
return (int) $group['user_id'];
}

Line 58Line 66
	/**
* {@inheritdoc}
*/

	/**
* {@inheritdoc}
*/

	public static function get_item_parent_id($group)

	static public function get_item_parent_id($group)

	{
// Group id is the parent
return (int) $group['group_id'];

	{
// Group id is the parent
return (int) $group['group_id'];

Line 96Line 104
	*/
public function get_avatar()
{

	*/
public function get_avatar()
{

		return $this->user_loader->get_avatar($this->item_id);

		return $this->user_loader->get_avatar($this->item_id, false, true);

	}

/**

	}

/**

Line 106Line 114
	{
$username = $this->user_loader->get_username($this->item_id, 'no_profile');


	{
$username = $this->user_loader->get_username($this->item_id, 'no_profile');


		return $this->user->lang('NOTIFICATION_GROUP_REQUEST', $username, $this->get_data('group_name'));

		return $this->language->lang('NOTIFICATION_GROUP_REQUEST', $username, $this->get_data('group_name'));

	}

/**

	}

/**

Line 156Line 164
	{
$this->set_data('group_name', $group['group_name']);


	{
$this->set_data('group_name', $group['group_name']);


		return parent::create_insert_array($group, $pre_create_data);

		parent::create_insert_array($group, $pre_create_data);

	}
}


	}
}