[ Index ]

PHP Cross Reference of phpBB-3.3.0-deutsch

title

Body

[close]

/phpbb/console/command/user/ -> add.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 334 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

add:: (8 methods):
  __construct()
  configure()
  execute()
  interact()
  validate_user_data()
  get_group_id()
  send_activation_email()
  ask_user()


Class: add  - X-Ref

__construct(user $user, driver_interface $db, config $config, language $language, manager $password_manager, $phpbb_root_path, $php_ext)   X-Ref
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

configure()   X-Ref
Sets the command name and description

return: null

execute(InputInterface $input, OutputInterface $output)   X-Ref
Executes the command user:add

Adds a new user to the database. If options are not provided, it will ask for the username, password and email.
User is added to the registered user group. Language and timezone default to $config settings.

return: int 0 if all is well, 1 if any errors occurred
param: InputInterface  $input  The input stream used to get the options
param: OutputInterface $output The output stream, used to print messages

interact(InputInterface $input, OutputInterface $output)   X-Ref
Interacts with the user.

param: InputInterface  $input  An InputInterface instance
param: OutputInterface $output An OutputInterface instance

validate_user_data()   X-Ref
Validate the submitted user data

return: null

get_group_id()   X-Ref
Get the group id

Go and find in the database the group_id corresponding to 'REGISTERED'

return: null

send_activation_email($user_id)   X-Ref
Send account activation email

return: null
param: int   $user_id The new user's id

ask_user($key)   X-Ref
Helper to translate questions to the user

return: string The language key translated with a colon and space appended
param: string $key The language key



Generated: Tue Apr 7 19:44:41 2020 Cross-referenced by PHPXref 0.7.1