aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/extension/manager.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-07-22 18:11:56 -0500
committerUnknown Bliss <m@michaelcullum.com>2012-09-01 15:05:12 +0100
commit3ba59c6362c955d1f9b59278f7dd19cdacecff99 (patch)
tree06e2522931757e7dfa30bec7c36047527a022b29 /phpBB/includes/extension/manager.php
parentc45243a91e142f1aa7a10e78c5ef4e91c4e18d9d (diff)
downloadforums-3ba59c6362c955d1f9b59278f7dd19cdacecff99.tar
forums-3ba59c6362c955d1f9b59278f7dd19cdacecff99.tar.gz
forums-3ba59c6362c955d1f9b59278f7dd19cdacecff99.tar.bz2
forums-3ba59c6362c955d1f9b59278f7dd19cdacecff99.tar.xz
forums-3ba59c6362c955d1f9b59278f7dd19cdacecff99.zip
[ticket/10631] Various tidbits and cleanup on the acp extensions manager
PHPBB3-10631
Diffstat (limited to 'phpBB/includes/extension/manager.php')
-rw-r--r--phpBB/includes/extension/manager.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/includes/extension/manager.php b/phpBB/includes/extension/manager.php
index 86d8fab64b..e7ceef6ad5 100644
--- a/phpBB/includes/extension/manager.php
+++ b/phpBB/includes/extension/manager.php
@@ -22,6 +22,7 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_extension_manager
{
+ protected $db;
protected $cache;
protected $php_ext;
protected $extensions;
@@ -121,6 +122,18 @@ class phpbb_extension_manager
}
/**
+ * Instantiates the metadata manager for the extension with the given name
+ *
+ * @param string $name The extension name
+ * @param string $template The template manager
+ * @return phpbb_extension_metadata_manager Instance of the metadata manager
+ */
+ public function get_extension_metadata($name, phpbb_template $template)
+ {
+ return new phpbb_extension_metadata_manager($name, $this->db, $this, $this->phpbb_root_path, $this->phpEx, $template);
+ }
+
+ /**
* Runs a step of the extension enabling process.
*
* Allows the exentension to enable in a long running script that works