Function __global->generate_whatsnew_comcode
Definitions
sources/newsletter.php
- Generate Comcode for a what's new newsletter.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $chosen_categories | LONG_TEXT | No | No | required parameter | N/A | N/A | Category selection |
| $in_full | BINARY | No | No | required parameter | N/A | N/A | Whether to show articles in full (as opposed to summaries) |
| $lang | LANGUAGE_NAME | No | No | required parameter | N/A | N/A | Language to send in |
| $cutoff_time | TIME | No | No | required parameter | N/A | N/A | When to cut off content from |
Returns
- The Comcode (null: no content)
- Type: ?string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Generate Comcode for a what's new newsletter.
*
* @param LONG_TEXT $chosen_categories Category selection
* @param BINARY $in_full Whether to show articles in full (as opposed to summaries)
* @param LANGUAGE_NAME $lang Language to send in
* @param TIME $cutoff_time When to cut off content from
* @return ?string The Comcode (null: no content)
*/
function generate_whatsnew_comcode(string $chosen_categories, int $in_full, string $lang, int $cutoff_time) : ?string
* Generate Comcode for a what's new newsletter.
*
* @param LONG_TEXT $chosen_categories Category selection
* @param BINARY $in_full Whether to show articles in full (as opposed to summaries)
* @param LANGUAGE_NAME $lang Language to send in
* @param TIME $cutoff_time When to cut off content from
* @return ?string The Comcode (null: no content)
*/
function generate_whatsnew_comcode(string $chosen_categories, int $in_full, string $lang, int $cutoff_time) : ?string

