1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 18:54:08 +02:00

[ticket/10631] Various tidbits and cleanup on the acp extensions manager

PHPBB3-10631
This commit is contained in:
Nathan Guse
2012-07-22 18:11:56 -05:00
committed by Unknown Bliss
parent c45243a91e
commit 3ba59c6362
5 changed files with 253 additions and 243 deletions

View File

@@ -22,6 +22,7 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_extension_manager
{
protected $db;
protected $cache;
protected $php_ext;
protected $extensions;
@@ -120,6 +121,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.
*