Beispiel #1
0
 /**
  * Constructor
  *
  * @param language $language
  * @param factory $factory
  * @param installer $installer
  */
 public function __construct(language $language, factory $factory, installer $installer)
 {
     $this->iohandler_factory = $factory;
     $this->installer = $installer;
     $this->language = $language;
     parent::__construct(new \phpbb\user($language, 'datetime'));
 }
Beispiel #2
0
 /**
  * Constructor
  *
  * @param \phpbb\user $user
  * @param \phpbb\di\service_collection $reparsers
  * @param \phpbb\config\db_text $config_text
  */
 public function __construct(\phpbb\user $user, \phpbb\di\service_collection $reparsers, \phpbb\config\db_text $config_text)
 {
     require_once __DIR__ . '/../../../../includes/functions_content.php';
     $this->config_text = $config_text;
     $this->reparsers = $reparsers;
     parent::__construct($user);
 }
Beispiel #3
0
 /**
  * Constructor
  *
  * @param \phpbb\user			$user				User instance
  * @param \phpbb\config_php_file	$config_php_file
  * @param string					$phpbb_root_path	Path to the phpbb includes directory.
  * @param string					$php_ext			php file extension
  */
 function __construct(\phpbb\user $user, \phpbb\config_php_file $config_php_file, $phpbb_root_path, $php_ext)
 {
     $this->config_php_file = $config_php_file;
     $this->phpbb_root_path = $phpbb_root_path;
     $this->php_ext = $php_ext;
     $user->add_lang_ext('nicofuma/debugtools', 'cli');
     parent::__construct($user);
 }
Beispiel #4
0
 /**
  * Constructor
  *
  * @param \phpbb\user                $user                User instance
  * @param \phpbb\controller\provider $controller_provider User instance
  * @param \phpbb\extension\manager   $extension_manager   Extension manager object
  * @param string                     $phpbb_root_path     phpBB root path
  */
 function __construct(\phpbb\user $user, \phpbb\controller\provider $controller_provider, \phpbb\extension\manager $extension_manager, $phpbb_root_path)
 {
     $this->controller_provider = $controller_provider;
     $this->extension_manager = $extension_manager;
     $this->phpbb_root_path = $phpbb_root_path;
     $user->add_lang_ext('nicofuma/debugtools', 'cli');
     parent::__construct($user);
 }
Beispiel #5
0
 /**
  * Construct method
  */
 public function __construct(user $user, config $config, ContainerInterface $phpbb_container, language $language)
 {
     $this->config = $config;
     $this->phpbb_container = $phpbb_container;
     $this->language = $language;
     $this->language->add_lang(array('acp/common', 'acp/extensions'));
     parent::__construct($user);
 }
Beispiel #6
0
 public function __construct(\phpbb\user $user, \phpbb\db\migrator $migrator, \phpbb\extension\manager $extension_manager, \phpbb\config\config $config, \phpbb\cache\service $cache)
 {
     $this->migrator = $migrator;
     $this->extension_manager = $extension_manager;
     $this->config = $config;
     $this->cache = $cache;
     parent::__construct($user);
 }
Beispiel #7
0
 /**
  * Constructor
  *
  * @param \phpbb\user $user
  * @param \phpbb\lock\db $reparse_lock
  * @param \phpbb\textreparser\manager $reparser_manager
  * @param \phpbb\di\service_collection $reparsers
  */
 public function __construct(\phpbb\user $user, \phpbb\lock\db $reparse_lock, \phpbb\textreparser\manager $reparser_manager, \phpbb\di\service_collection $reparsers)
 {
     require_once __DIR__ . '/../../../../includes/functions_content.php';
     $this->reparse_lock = $reparse_lock;
     $this->reparser_manager = $reparser_manager;
     $this->reparsers = $reparsers;
     parent::__construct($user);
 }
Beispiel #8
0
 /**
  * Constructor
  *
  * @param \phpbb\user $user The user object (used to get language information)
  * @param \phpbb\db\driver\driver_interface $db Database connection
  * @param \phpbb\cache\service $cache The cache service
  * @param string $phpbb_root_path Root path
  * @param string $php_ext PHP extension
  */
 public function __construct(\phpbb\user $user, \phpbb\db\driver\driver_interface $db, \phpbb\cache\service $cache, $phpbb_root_path, $php_ext)
 {
     $this->db = $db;
     $this->cache = $cache;
     $this->phpbb_root_path = $phpbb_root_path;
     $this->php_ext = $php_ext;
     parent::__construct($user);
 }
Beispiel #9
0
 /**
  * Constructor
  *
  * @param \phpbb\user $user
  * @param \phpbb\di\service_collection $reparsers
  */
 public function __construct(\phpbb\user $user, \phpbb\di\service_collection $reparsers)
 {
     parent::__construct($user);
     $this->reparser_names = array();
     foreach ($reparsers as $reparser) {
         // Store the names without the "text_reparser." prefix
         $this->reparser_names[] = $reparser->get_name();
     }
 }
Beispiel #10
0
 /**
  * Constructor
  *
  * @param \phpbb\user							$user	User instance
  * @param \phpbb\cache\driver\driver_interface	$cache	Cache instance
  * @param \phpbb\db\driver\driver_interface		$db		Database connection
  * @param \phpbb\auth\auth						$auth	Auth instance
  * @param \phpbb\log\log							$log	Logger instance
  * @param \phpbb\config\config					$config	Config instance
  */
 public function __construct(\phpbb\user $user, \phpbb\cache\driver\driver_interface $cache, \phpbb\db\driver\driver_interface $db, \phpbb\auth\auth $auth, \phpbb\log\log_interface $log, \phpbb\config\config $config)
 {
     $this->cache = $cache;
     $this->db = $db;
     $this->auth = $auth;
     $this->log = $log;
     $this->config = $config;
     parent::__construct($user);
 }
Beispiel #11
0
 /**
  * Constructor
  *
  * @param \phpbb\user $user
  * @param \phpbb\di\service_collection $reparsers
  */
 public function __construct(\phpbb\user $user, \phpbb\di\service_collection $reparsers)
 {
     parent::__construct($user);
     $this->reparser_names = array();
     foreach ($reparsers as $name => $reparser) {
         // Store the names without the "text_reparser." prefix
         $this->reparser_names[] = preg_replace('(^text_reparser\\.)', '', $name);
     }
 }
Beispiel #12
0
 /**
  * Construct method
  *
  * @param user             $user
  * @param driver_interface $db
  * @param config           $config
  * @param language         $language
  * @param manager          $password_manager
  * @param string           $phpbb_root_path
  * @param string           $php_ext
  */
 public function __construct(user $user, driver_interface $db, config $config, language $language, manager $password_manager, $phpbb_root_path, $php_ext)
 {
     $this->db = $db;
     $this->config = $config;
     $this->language = $language;
     $this->password_manager = $password_manager;
     $this->phpbb_root_path = $phpbb_root_path;
     $this->php_ext = $php_ext;
     $this->language->add_lang('ucp');
     parent::__construct($user);
 }
Beispiel #13
0
 /**
  * Construct method
  *
  * @param user             $user
  * @param driver_interface $db
  * @param language         $language
  * @param log_interface    $log
  * @param user_loader      $user_loader
  * @param string           $phpbb_root_path
  * @param string           $php_ext
  */
 public function __construct(user $user, driver_interface $db, language $language, log_interface $log, user_loader $user_loader, $phpbb_root_path, $php_ext)
 {
     $this->db = $db;
     $this->language = $language;
     $this->log = $log;
     $this->user_loader = $user_loader;
     $this->phpbb_root_path = $phpbb_root_path;
     $this->php_ext = $php_ext;
     $this->language->add_lang('acp/users');
     parent::__construct($user);
 }
Beispiel #14
0
 function __construct(\phpbb\user $user, \phpbb\db\migrator $migrator, \phpbb\extension\manager $extension_manager, \phpbb\config\config $config, \phpbb\cache\service $cache, \phpbb\log\log $log, $phpbb_root_path)
 {
     $this->migrator = $migrator;
     $this->extension_manager = $extension_manager;
     $this->config = $config;
     $this->cache = $cache;
     $this->log = $log;
     $this->phpbb_root_path = $phpbb_root_path;
     parent::__construct($user);
     $this->user->add_lang(array('common', 'install', 'migrator'));
 }
Beispiel #15
0
 /**
  * Constructor
  *
  * @param \phpbb\user $user The user object (used to get language information)
  * @param \phpbb\db\driver\driver_interface $db Database connection
  * @param string $phpbb_root_path Root path
  */
 public function __construct(\phpbb\user $user, \phpbb\db\driver\driver_interface $db, $phpbb_root_path)
 {
     $this->db = $db;
     $this->phpbb_root_path = $phpbb_root_path;
     parent::__construct($user);
 }
Beispiel #16
0
 /**
  * Constructor
  *
  * @param user $user User instance (mostly for translation)
  * @param packager $packager
  * @param validator $validator
  */
 public function __construct(user $user, packager $packager, validator $validator)
 {
     parent::__construct($user);
     $this->packager = $packager;
     $this->validator = $validator;
 }
 /**
  * Construct method
  *
  * @param \phpbb\user $user The user object (used to get language information)
  * @param \phpbb\cron\manager $cron_manager The cron manager containing
  *		the cron tasks to be executed.
  * @param \phpbb\lock\db $lock_db The lock for accessing database.
  */
 public function __construct(\phpbb\user $user, \phpbb\cron\manager $cron_manager, \phpbb\lock\db $lock_db)
 {
     $this->cron_manager = $cron_manager;
     $this->lock_db = $lock_db;
     parent::__construct($user);
 }
 /**
  * Constructor
  *
  * @param user $user
  * @param rebuild_tool $tool
  */
 public function __construct(user $user, rebuild_tool $tool)
 {
     $user->add_lang_ext('phpbb/titania', array('console', 'manage_tools'));
     parent::__construct($user);
     $this->tool = $tool;
 }
Beispiel #19
0
 /**
  * Construct method
  *
  * @param user             $user
  * @param driver_interface $db
  * @param language         $language
  */
 public function __construct(user $user, driver_interface $db, language $language)
 {
     $this->db = $db;
     $this->language = $language;
     parent::__construct($user);
 }
Beispiel #20
0
 public function __construct(\phpbb\user $user, \phpbb\extension\manager $manager, \phpbb\log\log $log)
 {
     $this->manager = $manager;
     $this->log = $log;
     parent::__construct($user);
 }
 function __construct(\phpbb\user $user, \phpbb\extension\manager $extension_manager)
 {
     $this->extension_manager = $extension_manager;
     parent::__construct($user);
 }
Beispiel #22
0
 /**
  * Constructor
  *
  * @param \phpbb\user							$user	User instance
  * @param \phpbb\cache\driver\driver_interface	$cache	Cache instance
  */
 public function __construct(\phpbb\user $user, \phpbb\cache\driver\driver_interface $cache)
 {
     $this->cache = $cache;
     $user->add_lang_ext('nicofuma/debugtools', 'cli');
     parent::__construct($user);
 }
Beispiel #23
0
 /**
  * Constructor
  *
  * @param \phpbb\user			$user			User instance
  * @param \phpbb\cron\manager	$cron_manager	Cron manager
  */
 public function __construct(\phpbb\user $user, \phpbb\cron\manager $cron_manager)
 {
     $this->cron_manager = $cron_manager;
     parent::__construct($user);
 }
 function __construct(\phpbb\user $user, \phpbb\db\driver\driver_interface $db)
 {
     $this->db = $db;
     parent::__construct($user);
 }
Beispiel #25
0
 function __construct(\phpbb\user $user, \phpbb\config\config $config)
 {
     $this->config = $config;
     parent::__construct($user);
 }