[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch




/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):

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.

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

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

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

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

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

Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1