[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/phpbb/template/twig/extension/ -> username.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: 84 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

username:: (3 methods):
  getName()
  getFunctions()
  get_username()


Class: username  - X-Ref

getName()   X-Ref
Get the name of this extension

return: string

getFunctions()   X-Ref
Returns a list of global functions to add to the existing list.

return: array An array of global functions

get_username()   X-Ref
Get username details for placing into templates.

How to use in a template:
- {{ username('mode', user_id, username, user_colour, guest_username, custom_profile_url) }}
- {{ username('mode', user_row, guest_username, custom_profile_url) }}
It's possible to provide the user identifier, name and colour separately,
or provide the entire user row at once as an array.

The mode, user_id and username are required (separately or through a user row).
The other fields (user_colour|guest_username|custom_profile_url) are optional.

return: string        A string based on what is wanted depending on $mode



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1