Function Module_cms_banners_cat->get_form_fields
Definitions
cms/pages/modules/cms_banners.php
- Get Tempcode for a Post Template adding/editing form.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $id | ?ID_TEXT | No | No | Null | N/A | N/A | The ID of the banner type (null: new) |
| $is_textual | BINARY | No | No | 0 | N/A | N/A | Whether this is a textual banner |
| $image_width | integer | No | No | 160 | N/A | N/A | The image width (ignored for textual banners) |
| $image_height | integer | No | No | 600 | N/A | N/A | The image height (ignored for textual banners) |
| $max_file_size | integer | No | No | 250 | N/A | N/A | The maximum file size for the banners (this is a string length for textual banners) |
| $comcode_inline | BINARY | No | No | 0 | N/A | N/A | Whether the banner will be automatically shown via Comcode hot-text (this can only happen if banners of the title are given title-text) |
Returns
- A pair: The input fields, Hidden fields
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get Tempcode for a Post Template adding/editing form.
*
* @param ?ID_TEXT $id The ID of the banner type (null: new)
* @param BINARY $is_textual Whether this is a textual banner
* @param integer $image_width The image width (ignored for textual banners)
* @param integer $image_height The image height (ignored for textual banners)
* @param integer $max_file_size The maximum file size for the banners (this is a string length for textual banners)
* @param BINARY $comcode_inline Whether the banner will be automatically shown via Comcode hot-text (this can only happen if banners of the title are given title-text)
* @return array A pair: The input fields, Hidden fields
*/
public function get_form_fields(?string $id = null, int $is_textual = 0, int $image_width = 160, int $image_height = 600, int $max_file_size = 250, int $comcode_inline = 0) : array
* Get Tempcode for a Post Template adding/editing form.
*
* @param ?ID_TEXT $id The ID of the banner type (null: new)
* @param BINARY $is_textual Whether this is a textual banner
* @param integer $image_width The image width (ignored for textual banners)
* @param integer $image_height The image height (ignored for textual banners)
* @param integer $max_file_size The maximum file size for the banners (this is a string length for textual banners)
* @param BINARY $comcode_inline Whether the banner will be automatically shown via Comcode hot-text (this can only happen if banners of the title are given title-text)
* @return array A pair: The input fields, Hidden fields
*/
public function get_form_fields(?string $id = null, int $is_textual = 0, int $image_width = 160, int $image_height = 600, int $max_file_size = 250, int $comcode_inline = 0) : array

