Function __global->edit_download_category
Definitions
sources/downloads2.php
- Edit the given download category with the new details given.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $category_id | AUTO_LINK | No | No | required parameter | N/A | N/A | The ID of the category being edited |
| $category | SHORT_TEXT | No | No | required parameter | N/A | N/A | The name of the download category |
| $parent_id | ?AUTO_LINK | No | No | required parameter | N/A | N/A | The parent download category (null: root) |
| $description | LONG_TEXT | No | No | required parameter | N/A | N/A | A description |
| $notes | LONG_TEXT | No | No | required parameter | N/A | N/A | Hidden notes pertaining to this download category |
| $rep_image | ?URLPATH | No | No | required parameter | N/A | N/A | The representative image for the category (blank: none) (null: do not edit) |
| $meta_keywords | ?SHORT_TEXT | No | No | required parameter | N/A | N/A | Meta keywords for this resource (null: do not edit) |
| $meta_description | ?LONG_TEXT | No | No | required parameter | N/A | N/A | Meta description for this resource (null: do not edit) |
| $add_time | ?TIME | No | No | Null | N/A | N/A | Add time (null: do not change) |
Preview
Code (PHP)
/**
* Edit the given download category with the new details given.
*
* @param AUTO_LINK $category_id The ID of the category being edited
* @param SHORT_TEXT $category The name of the download category
* @param ?AUTO_LINK $parent_id The parent download category (null: root)
* @param LONG_TEXT $description A description
* @param LONG_TEXT $notes Hidden notes pertaining to this download category
* @param ?URLPATH $rep_image The representative image for the category (blank: none) (null: do not edit)
* @param ?SHORT_TEXT $meta_keywords Meta keywords for this resource (null: do not edit)
* @param ?LONG_TEXT $meta_description Meta description for this resource (null: do not edit)
* @param ?TIME $add_time Add time (null: do not change)
*/
function edit_download_category(int $category_id, string $category, ?int $parent_id, string $description, string $notes, ?string $rep_image, ?string $meta_keywords, ?string $meta_description, ?int $add_time = null)
* Edit the given download category with the new details given.
*
* @param AUTO_LINK $category_id The ID of the category being edited
* @param SHORT_TEXT $category The name of the download category
* @param ?AUTO_LINK $parent_id The parent download category (null: root)
* @param LONG_TEXT $description A description
* @param LONG_TEXT $notes Hidden notes pertaining to this download category
* @param ?URLPATH $rep_image The representative image for the category (blank: none) (null: do not edit)
* @param ?SHORT_TEXT $meta_keywords Meta keywords for this resource (null: do not edit)
* @param ?LONG_TEXT $meta_description Meta description for this resource (null: do not edit)
* @param ?TIME $add_time Add time (null: do not change)
*/
function edit_download_category(int $category_id, string $category, ?int $parent_id, string $description, string $notes, ?string $rep_image, ?string $meta_keywords, ?string $meta_description, ?int $add_time = null)

