mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-23 00:32:57 +02:00
[ticket/11700] Move all recent code to namespaces
PHPBB3-11700
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbb\groupposition;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
@@ -23,7 +25,7 @@ if (!defined('IN_PHPBB'))
|
||||
*
|
||||
* @package phpBB3
|
||||
*/
|
||||
class phpbb_groupposition_legend implements phpbb_groupposition_groupposition_interface
|
||||
class legend implements \phpbb\groupposition\groupposition_interface
|
||||
{
|
||||
/**
|
||||
* Group is not displayed
|
||||
@@ -32,23 +34,23 @@ class phpbb_groupposition_legend implements phpbb_groupposition_groupposition_in
|
||||
|
||||
/**
|
||||
* Database object
|
||||
* @var phpbb_db_driver
|
||||
* @var \phpbb\db\driver\driver
|
||||
*/
|
||||
protected $db;
|
||||
|
||||
/**
|
||||
* User object
|
||||
* @var phpbb_user
|
||||
* @var \phpbb\user
|
||||
*/
|
||||
protected $user;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param phpbb_db_driver $db Database object
|
||||
* @param phpbb_user $user User object
|
||||
* @param \phpbb\db\driver\driver $db Database object
|
||||
* @param \phpbb\user $user User object
|
||||
*/
|
||||
public function __construct(phpbb_db_driver $db, phpbb_user $user)
|
||||
public function __construct(\phpbb\db\driver\driver $db, \phpbb\user $user)
|
||||
{
|
||||
$this->db = $db;
|
||||
$this->user = $user;
|
||||
@@ -71,7 +73,7 @@ class phpbb_groupposition_legend implements phpbb_groupposition_groupposition_in
|
||||
if ($current_value === false)
|
||||
{
|
||||
// Group not found.
|
||||
throw new phpbb_groupposition_exception('NO_GROUP');
|
||||
throw new \phpbb\groupposition\exception('NO_GROUP');
|
||||
}
|
||||
|
||||
return (int) $current_value;
|
||||
|
Reference in New Issue
Block a user