1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/12466] Move classes from acp_database.php to their own files

* Moving classes from acp_database.php to phpbb/db/extractor namespace,
   also into separate files
 * Adding DocBlocks and property visibility to classes
 * Removing globals from code
 * Passing former globals to base_extractor's constructor
 * Adding DB extractor as a service, also implementing the extractor interface
   as well as the extractor factory.

PHPBB3-12466
This commit is contained in:
MateBartus
2015-02-22 16:22:10 +01:00
parent 3657d7a85a
commit 193c5b86b4
13 changed files with 2350 additions and 1660 deletions

View File

@@ -0,0 +1,24 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
namespace phpbb\db\extractor\exception;
use phpbb\exception\runtime_exception;
/**
* This exception is thrown when invalid format is given to the extractor
*/
class extractor_not_initialized_exception extends runtime_exception
{
}

View File

@@ -0,0 +1,22 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
namespace phpbb\db\extractor\exception;
/**
* This exception is thrown when invalid format is given to the extractor
*/
class invalid_format_exception extends \InvalidArgumentException
{
}