Function Module_admin_cns_emoticons->get_form_fields
Definitions
adminzone/pages/modules/admin_cns_emoticons.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 |
|---|---|---|---|---|---|---|---|
| $code | SHORT_TEXT | No | No | :-] | N/A | N/A | The emoticon code |
| $theme_img_code | SHORT_TEXT | No | No | Blank (empty string) | N/A | N/A | The theme image code |
| $relevance_level | integer | No | No | 1 | N/A | 0 4 | The relevance level of the emoticon |
| $use_topics | BINARY | No | No | 1 | N/A | N/A | Whether the emoticon is usable as a topic emoticon |
| $is_special | BINARY | No | No | 0 | N/A | N/A | Whether this may only be used by privileged members |
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 SHORT_TEXT $code The emoticon code
* @param SHORT_TEXT $theme_img_code The theme image code
* @param integer $relevance_level The relevance level of the emoticon
* @range 0 4
* @param BINARY $use_topics Whether the emoticon is usable as a topic emoticon
* @param BINARY $is_special Whether this may only be used by privileged members
* @return array A pair: The input fields, Hidden fields
*/
public function get_form_fields(string $code = ':-]', string $theme_img_code = '', int $relevance_level = 1, int $use_topics = 1, int $is_special = 0) : array
* Get Tempcode for a Post Template adding/editing form.
*
* @param SHORT_TEXT $code The emoticon code
* @param SHORT_TEXT $theme_img_code The theme image code
* @param integer $relevance_level The relevance level of the emoticon
* @range 0 4
* @param BINARY $use_topics Whether the emoticon is usable as a topic emoticon
* @param BINARY $is_special Whether this may only be used by privileged members
* @return array A pair: The input fields, Hidden fields
*/
public function get_form_fields(string $code = ':-]', string $theme_img_code = '', int $relevance_level = 1, int $use_topics = 1, int $is_special = 0) : array

