Function __global->edit_news_category
Definitions
sources/news2.php
- Edit a news category.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $id | AUTO_LINK | No | No | required parameter | N/A | N/A | The news category to edit |
| $title | ?SHORT_TEXT | No | No | required parameter | N/A | N/A | The title (null: keep as-is) |
| $img | ?SHORT_TEXT | No | No | required parameter | N/A | N/A | The image (null: keep as-is) |
| $notes | ?LONG_TEXT | No | No | required parameter | N/A | N/A | The notes (null: keep as-is) |
| $owner | ?MEMBER | No | No | required parameter | N/A | N/A | The owner (null: public) |
Preview
Code (PHP)
/**
* Edit a news category.
*
* @param AUTO_LINK $id The news category to edit
* @param ?SHORT_TEXT $title The title (null: keep as-is)
* @param ?SHORT_TEXT $img The image (null: keep as-is)
* @param ?LONG_TEXT $notes The notes (null: keep as-is)
* @param ?MEMBER $owner The owner (null: public)
*/
function edit_news_category(int $id, ?string $title, ?string $img, ?string $notes, ?int $owner)
* Edit a news category.
*
* @param AUTO_LINK $id The news category to edit
* @param ?SHORT_TEXT $title The title (null: keep as-is)
* @param ?SHORT_TEXT $img The image (null: keep as-is)
* @param ?LONG_TEXT $notes The notes (null: keep as-is)
* @param ?MEMBER $owner The owner (null: public)
*/
function edit_news_category(int $id, ?string $title, ?string $img, ?string $notes, ?int $owner)

