mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13421] Move tools to subdirectory
PHPBB3-13421
This commit is contained in:
@@ -115,7 +115,7 @@ class qa
|
||||
{
|
||||
global $db;
|
||||
|
||||
$db_tool = new \phpbb\db\tools($db);
|
||||
$db_tool = new \phpbb\db\tools\tools($db);
|
||||
|
||||
return $db_tool->sql_table_exists($this->table_captcha_questions);
|
||||
}
|
||||
@@ -308,7 +308,7 @@ class qa
|
||||
{
|
||||
global $db;
|
||||
|
||||
$db_tool = new \phpbb\db\tools($db);
|
||||
$db_tool = new \phpbb\db\tools\tools($db);
|
||||
|
||||
$tables = array($this->table_captcha_questions, $this->table_captcha_answers, $this->table_qa_confirm);
|
||||
|
||||
|
@@ -34,7 +34,7 @@ class release_3_0_9_rc1 extends \phpbb\db\migration\migration
|
||||
// this column was removed from the database updater
|
||||
// after 3.0.9-RC3 was released. It might still exist
|
||||
// in 3.0.9-RCX installations and has to be dropped as
|
||||
// soon as the db_tools class is capable of properly
|
||||
// soon as the \phpbb\db\tools\tools class is capable of properly
|
||||
// removing a primary key.
|
||||
// 'attempt_id' => array('UINT', NULL, 'auto_increment'),
|
||||
'attempt_ip' => array('VCHAR:40', ''),
|
||||
|
@@ -28,7 +28,7 @@ abstract class migration
|
||||
/** @var \phpbb\db\driver\driver_interface */
|
||||
protected $db;
|
||||
|
||||
/** @var \phpbb\db\tools_interface */
|
||||
/** @var \phpbb\db\tools\tools_interface */
|
||||
protected $db_tools;
|
||||
|
||||
/** @var string */
|
||||
@@ -51,12 +51,12 @@ abstract class migration
|
||||
*
|
||||
* @param \phpbb\config\config $config
|
||||
* @param \phpbb\db\driver\driver_interface $db
|
||||
* @param \phpbb\db\tools_interface $db_tools
|
||||
* @param \phpbb\db\tools\tools_interface $db_tools
|
||||
* @param string $phpbb_root_path
|
||||
* @param string $php_ext
|
||||
* @param string $table_prefix
|
||||
*/
|
||||
public function __construct(\phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\db\tools_interface $db_tools, $phpbb_root_path, $php_ext, $table_prefix)
|
||||
public function __construct(\phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\db\tools\tools_interface $db_tools, $phpbb_root_path, $php_ext, $table_prefix)
|
||||
{
|
||||
$this->config = $config;
|
||||
$this->db = $db;
|
||||
|
@@ -24,7 +24,7 @@ class schema_generator
|
||||
/** @var \phpbb\db\driver\driver_interface */
|
||||
protected $db;
|
||||
|
||||
/** @var \phpbb\db\tools */
|
||||
/** @var \phpbb\db\tools\tools_interface */
|
||||
protected $db_tools;
|
||||
|
||||
/** @var array */
|
||||
@@ -48,7 +48,7 @@ class schema_generator
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public function __construct(array $class_names, \phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\db\tools $db_tools, $phpbb_root_path, $php_ext, $table_prefix)
|
||||
public function __construct(array $class_names, \phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\db\tools\tools_interface $db_tools, $phpbb_root_path, $php_ext, $table_prefix)
|
||||
{
|
||||
$this->config = $config;
|
||||
$this->db = $db;
|
||||
|
@@ -24,7 +24,7 @@ class migrator
|
||||
/** @var \phpbb\db\driver\driver_interface */
|
||||
protected $db;
|
||||
|
||||
/** @var \phpbb\db\tools_interface */
|
||||
/** @var \phpbb\db\tools\tools_interface */
|
||||
protected $db_tools;
|
||||
|
||||
/** @var \phpbb\db\migration\helper */
|
||||
@@ -84,7 +84,7 @@ class migrator
|
||||
/**
|
||||
* Constructor of the database migrator
|
||||
*/
|
||||
public function __construct(\phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\db\tools_interface $db_tools, $migrations_table, $phpbb_root_path, $php_ext, $table_prefix, $tools, \phpbb\db\migration\helper $helper)
|
||||
public function __construct(\phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\db\tools\tools_interface $db_tools, $migrations_table, $phpbb_root_path, $php_ext, $table_prefix, $tools, \phpbb\db\migration\helper $helper)
|
||||
{
|
||||
$this->config = $config;
|
||||
$this->db = $db;
|
||||
|
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbb\db;
|
||||
namespace phpbb\db\tools;
|
||||
|
||||
/**
|
||||
* Database Tools for handling cross-db actions such as altering columns, etc.
|
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbb\db;
|
||||
namespace phpbb\db\tools;
|
||||
|
||||
/**
|
||||
* Interface for a Database Tools for handling cross-db actions such as altering columns, etc.
|
@@ -85,7 +85,7 @@ class fulltext_sphinx
|
||||
|
||||
/**
|
||||
* Database Tools object
|
||||
* @var \phpbb\db\tools_interface
|
||||
* @var \phpbb\db\tools\tools_interface
|
||||
*/
|
||||
protected $db_tools;
|
||||
|
||||
@@ -135,8 +135,8 @@ class fulltext_sphinx
|
||||
$this->db = $db;
|
||||
$this->auth = $auth;
|
||||
|
||||
// Initialize \phpbb\db\tools object
|
||||
$this->db_tools = new \phpbb\db\tools($this->db);
|
||||
// Initialize \phpbb\db\tools\tools object
|
||||
$this->db_tools = new \phpbb\db\tools\tools($this->db);
|
||||
|
||||
if(!$this->config['fulltext_sphinx_id'])
|
||||
{
|
||||
|
Reference in New Issue
Block a user