mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11201] Add variables to classes and add constructor doc blocks
PHPBB3-11201
This commit is contained in:
parent
7fac238398
commit
b1bed49eae
7 changed files with 196 additions and 0 deletions
|
@ -12,7 +12,30 @@ namespace phpbb\profilefields\type;
|
|||
abstract class type_base implements type_interface
|
||||
{
|
||||
/**
|
||||
* Request object
|
||||
* @var \phpbb\request\request
|
||||
*/
|
||||
protected $request;
|
||||
|
||||
/**
|
||||
* Template object
|
||||
* @var \phpbb\template\template
|
||||
*/
|
||||
protected $template;
|
||||
|
||||
/**
|
||||
* User object
|
||||
* @var \phpbb\user
|
||||
*/
|
||||
protected $user;
|
||||
|
||||
/**
|
||||
* Construct
|
||||
*
|
||||
* @param \phpbb\request\request $request Request object
|
||||
* @param \phpbb\template\template $template Template object
|
||||
* @param \phpbb\user $user User object
|
||||
* @param string $language_table Table where the language strings are stored
|
||||
*/
|
||||
public function __construct(\phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user)
|
||||
{
|
||||
|
|
|
@ -12,7 +12,44 @@ namespace phpbb\profilefields\type;
|
|||
class type_bool extends type_base
|
||||
{
|
||||
/**
|
||||
* Profile fields language helper
|
||||
* @var \phpbb\profilefields\lang_helper
|
||||
*/
|
||||
protected $lang_helper;
|
||||
|
||||
/**
|
||||
* Profile fields object
|
||||
* @var \phpbb\profilefields\profilefields
|
||||
*/
|
||||
protected $profilefields;
|
||||
|
||||
/**
|
||||
* Request object
|
||||
* @var \phpbb\request\request
|
||||
*/
|
||||
protected $request;
|
||||
|
||||
/**
|
||||
* Template object
|
||||
* @var \phpbb\template\template
|
||||
*/
|
||||
protected $template;
|
||||
|
||||
/**
|
||||
* User object
|
||||
* @var \phpbb\user
|
||||
*/
|
||||
protected $user;
|
||||
|
||||
/**
|
||||
* Construct
|
||||
*
|
||||
* @param \phpbb\profilefields\lang_helper $lang_helper Profile fields language helper
|
||||
* @param \phpbb\profilefields\profilefields $profilefields Profile fields object
|
||||
* @param \phpbb\request\request $request Request object
|
||||
* @param \phpbb\template\template $template Template object
|
||||
* @param \phpbb\user $user User object
|
||||
* @param string $language_table Table where the language strings are stored
|
||||
*/
|
||||
public function __construct(\phpbb\profilefields\lang_helper $lang_helper, \phpbb\profilefields\profilefields $profilefields, \phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user)
|
||||
{
|
||||
|
|
|
@ -12,7 +12,37 @@ namespace phpbb\profilefields\type;
|
|||
class type_date extends type_base
|
||||
{
|
||||
/**
|
||||
* Profile fields object
|
||||
* @var \phpbb\profilefields\profilefields
|
||||
*/
|
||||
protected $profilefields;
|
||||
|
||||
/**
|
||||
* Request object
|
||||
* @var \phpbb\request\request
|
||||
*/
|
||||
protected $request;
|
||||
|
||||
/**
|
||||
* Template object
|
||||
* @var \phpbb\template\template
|
||||
*/
|
||||
protected $template;
|
||||
|
||||
/**
|
||||
* User object
|
||||
* @var \phpbb\user
|
||||
*/
|
||||
protected $user;
|
||||
|
||||
/**
|
||||
* Construct
|
||||
*
|
||||
* @param \phpbb\profilefields\profilefields $profilefields Profile fields object
|
||||
* @param \phpbb\request\request $request Request object
|
||||
* @param \phpbb\template\template $template Template object
|
||||
* @param \phpbb\user $user User object
|
||||
* @param string $language_table Table where the language strings are stored
|
||||
*/
|
||||
public function __construct(\phpbb\profilefields\profilefields $profilefields, \phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user)
|
||||
{
|
||||
|
|
|
@ -12,7 +12,44 @@ namespace phpbb\profilefields\type;
|
|||
class type_dropdown extends type_base
|
||||
{
|
||||
/**
|
||||
* Profile fields language helper
|
||||
* @var \phpbb\profilefields\lang_helper
|
||||
*/
|
||||
protected $lang_helper;
|
||||
|
||||
/**
|
||||
* Profile fields object
|
||||
* @var \phpbb\profilefields\profilefields
|
||||
*/
|
||||
protected $profilefields;
|
||||
|
||||
/**
|
||||
* Request object
|
||||
* @var \phpbb\request\request
|
||||
*/
|
||||
protected $request;
|
||||
|
||||
/**
|
||||
* Template object
|
||||
* @var \phpbb\template\template
|
||||
*/
|
||||
protected $template;
|
||||
|
||||
/**
|
||||
* User object
|
||||
* @var \phpbb\user
|
||||
*/
|
||||
protected $user;
|
||||
|
||||
/**
|
||||
* Construct
|
||||
*
|
||||
* @param \phpbb\profilefields\lang_helper $lang_helper Profile fields language helper
|
||||
* @param \phpbb\profilefields\profilefields $profilefields Profile fields object
|
||||
* @param \phpbb\request\request $request Request object
|
||||
* @param \phpbb\template\template $template Template object
|
||||
* @param \phpbb\user $user User object
|
||||
* @param string $language_table Table where the language strings are stored
|
||||
*/
|
||||
public function __construct(\phpbb\profilefields\lang_helper $lang_helper, \phpbb\profilefields\profilefields $profilefields, \phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user)
|
||||
{
|
||||
|
|
|
@ -12,7 +12,30 @@ namespace phpbb\profilefields\type;
|
|||
class type_int extends type_base
|
||||
{
|
||||
/**
|
||||
* Request object
|
||||
* @var \phpbb\request\request
|
||||
*/
|
||||
protected $request;
|
||||
|
||||
/**
|
||||
* Template object
|
||||
* @var \phpbb\template\template
|
||||
*/
|
||||
protected $template;
|
||||
|
||||
/**
|
||||
* User object
|
||||
* @var \phpbb\user
|
||||
*/
|
||||
protected $user;
|
||||
|
||||
/**
|
||||
* Construct
|
||||
*
|
||||
* @param \phpbb\request\request $request Request object
|
||||
* @param \phpbb\template\template $template Template object
|
||||
* @param \phpbb\user $user User object
|
||||
* @param string $language_table Table where the language strings are stored
|
||||
*/
|
||||
public function __construct(\phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user)
|
||||
{
|
||||
|
|
|
@ -12,7 +12,30 @@ namespace phpbb\profilefields\type;
|
|||
class type_string extends type_string_common
|
||||
{
|
||||
/**
|
||||
* Request object
|
||||
* @var \phpbb\request\request
|
||||
*/
|
||||
protected $request;
|
||||
|
||||
/**
|
||||
* Template object
|
||||
* @var \phpbb\template\template
|
||||
*/
|
||||
protected $template;
|
||||
|
||||
/**
|
||||
* User object
|
||||
* @var \phpbb\user
|
||||
*/
|
||||
protected $user;
|
||||
|
||||
/**
|
||||
* Construct
|
||||
*
|
||||
* @param \phpbb\request\request $request Request object
|
||||
* @param \phpbb\template\template $template Template object
|
||||
* @param \phpbb\user $user User object
|
||||
* @param string $language_table Table where the language strings are stored
|
||||
*/
|
||||
public function __construct(\phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user)
|
||||
{
|
||||
|
|
|
@ -12,7 +12,30 @@ namespace phpbb\profilefields\type;
|
|||
class type_text extends type_string_common
|
||||
{
|
||||
/**
|
||||
* Request object
|
||||
* @var \phpbb\request\request
|
||||
*/
|
||||
protected $request;
|
||||
|
||||
/**
|
||||
* Template object
|
||||
* @var \phpbb\template\template
|
||||
*/
|
||||
protected $template;
|
||||
|
||||
/**
|
||||
* User object
|
||||
* @var \phpbb\user
|
||||
*/
|
||||
protected $user;
|
||||
|
||||
/**
|
||||
* Construct
|
||||
*
|
||||
* @param \phpbb\request\request $request Request object
|
||||
* @param \phpbb\template\template $template Template object
|
||||
* @param \phpbb\user $user User object
|
||||
* @param string $language_table Table where the language strings are stored
|
||||
*/
|
||||
public function __construct(\phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue