mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 13:58:55 +08:00
Update BaseHtml and Formatter typehints (#18185)
This commit is contained in:
@ -420,7 +420,7 @@ class BaseHtml
|
||||
* @param string $text link body. It will NOT be HTML-encoded. Therefore you can pass in HTML code
|
||||
* such as an image tag. If this is coming from end users, you should consider [[encode()]]
|
||||
* it to prevent XSS attacks.
|
||||
* @param string $email email address. If this is null, the first parameter (link body) will be treated
|
||||
* @param string|null $email email address. If this is null, the first parameter (link body) will be treated
|
||||
* as the email address and used.
|
||||
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
|
||||
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
|
||||
@ -470,7 +470,7 @@ class BaseHtml
|
||||
* @param string $content label text. It will NOT be HTML-encoded. Therefore you can pass in HTML code
|
||||
* such as an image tag. If this is is coming from end users, you should [[encode()]]
|
||||
* it to prevent XSS attacks.
|
||||
* @param string $for the ID of the HTML element that this label is associated with.
|
||||
* @param string|null $for the ID of the HTML element that this label is associated with.
|
||||
* If this is null, the "for" attribute will not be generated.
|
||||
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
|
||||
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
|
||||
@ -545,8 +545,8 @@ class BaseHtml
|
||||
/**
|
||||
* Generates an input type of the given type.
|
||||
* @param string $type the type attribute.
|
||||
* @param string $name the name attribute. If it is null, the name attribute will not be generated.
|
||||
* @param string $value the value attribute. If it is null, the value attribute will not be generated.
|
||||
* @param string|null $name the name attribute. If it is null, the name attribute will not be generated.
|
||||
* @param string|null $value the value attribute. If it is null, the value attribute will not be generated.
|
||||
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
|
||||
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
|
||||
* If a value is null, the corresponding attribute will not be rendered.
|
||||
@ -617,7 +617,7 @@ class BaseHtml
|
||||
/**
|
||||
* Generates a text input field.
|
||||
* @param string $name the name attribute.
|
||||
* @param string $value the value attribute. If it is null, the value attribute will not be generated.
|
||||
* @param string|null $value the value attribute. If it is null, the value attribute will not be generated.
|
||||
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
|
||||
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
|
||||
* If a value is null, the corresponding attribute will not be rendered.
|
||||
@ -632,7 +632,7 @@ class BaseHtml
|
||||
/**
|
||||
* Generates a hidden input field.
|
||||
* @param string $name the name attribute.
|
||||
* @param string $value the value attribute. If it is null, the value attribute will not be generated.
|
||||
* @param string|null $value the value attribute. If it is null, the value attribute will not be generated.
|
||||
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
|
||||
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
|
||||
* If a value is null, the corresponding attribute will not be rendered.
|
||||
@ -647,7 +647,7 @@ class BaseHtml
|
||||
/**
|
||||
* Generates a password input field.
|
||||
* @param string $name the name attribute.
|
||||
* @param string $value the value attribute. If it is null, the value attribute will not be generated.
|
||||
* @param string|null $value the value attribute. If it is null, the value attribute will not be generated.
|
||||
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
|
||||
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
|
||||
* If a value is null, the corresponding attribute will not be rendered.
|
||||
@ -665,7 +665,7 @@ class BaseHtml
|
||||
* be "multipart/form-data". After the form is submitted, the uploaded file information
|
||||
* can be obtained via $_FILES[$name] (see PHP documentation).
|
||||
* @param string $name the name attribute.
|
||||
* @param string $value the value attribute. If it is null, the value attribute will not be generated.
|
||||
* @param string|null $value the value attribute. If it is null, the value attribute will not be generated.
|
||||
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
|
||||
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
|
||||
* If a value is null, the corresponding attribute will not be rendered.
|
||||
|
||||
Reference in New Issue
Block a user