aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/migration/tool/tool_interface.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2013-07-14 12:25:28 -0400
committerNils Adermann <naderman@naderman.de>2013-07-14 12:25:28 -0400
commitb81613e5e57fd208e832637b6886abf9ec806c4b (patch)
tree5dfec7ded65655a0cb1ca486d5c58698dd0cc5c2 /phpBB/phpbb/db/migration/tool/tool_interface.php
parentc15bde161a93fc2abc48cacd7e5a71c682880e52 (diff)
downloadforums-b81613e5e57fd208e832637b6886abf9ec806c4b.tar
forums-b81613e5e57fd208e832637b6886abf9ec806c4b.tar.gz
forums-b81613e5e57fd208e832637b6886abf9ec806c4b.tar.bz2
forums-b81613e5e57fd208e832637b6886abf9ec806c4b.tar.xz
forums-b81613e5e57fd208e832637b6886abf9ec806c4b.zip
[ticket/11700] With namespaces interface will no longer be a valid classname
PHPBB3-11700
Diffstat (limited to 'phpBB/phpbb/db/migration/tool/tool_interface.php')
-rw-r--r--phpBB/phpbb/db/migration/tool/tool_interface.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/tool/tool_interface.php b/phpBB/phpbb/db/migration/tool/tool_interface.php
new file mode 100644
index 0000000000..72344d50d2
--- /dev/null
+++ b/phpBB/phpbb/db/migration/tool/tool_interface.php
@@ -0,0 +1,33 @@
+<?php
+/**
+*
+* @package migration
+* @copyright (c) 2012 phpBB Group
+* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2
+*
+*/
+
+/**
+* Migration tool interface
+*
+* @package db
+*/
+interface phpbb_db_migration_tool_tool_interface
+{
+ /**
+ * Retrieve a short name used for commands in migrations.
+ *
+ * @return string short name
+ */
+ public function get_name();
+
+ /**
+ * Reverse an original install action
+ *
+ * First argument is the original call to the class (e.g. add, remove)
+ * After the first argument, send the original arguments to the function in the original call
+ *
+ * @return null
+ */
+ public function reverse();
+}