[ Index ]

PHP Cross Reference of phpBB-3.3.14-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: 362 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

add:: (9 methods):
  __construct()
  configure()
  execute()
  interact()
  validate_user_data()
  get_group_id()
  send_activation_email()
  get_activation_key()
  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.

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

get_activation_key(int $user_id)   X-Ref
Get user activation key

param: int $user_id User ID
return: string User activation key for user

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: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1