Function __global->actual_add_catalogue_entry
Definitions
sources/catalogues2.php
- Adds an entry to the specified catalogue.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: int
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$category_id | AUTO_LINK | required parameter | N/A | N/A | The ID of the category that the entry is in |
$validated | BINARY | required parameter | N/A | N/A | Whether the entry has been validated |
$notes | LONG_TEXT | required parameter | N/A | N/A | Hidden notes pertaining to the entry |
$allow_rating | BINARY | required parameter | N/A | N/A | Whether the entry may be rated |
$allow_comments | SHORT_INTEGER | required parameter | N/A | N/A | Whether comments are allowed (0=no, 1=yes, 2=review style) |
$allow_trackbacks | BINARY | required parameter | N/A | N/A | Whether the entry may be trackbacked |
$map | array | required parameter | N/A | N/A | A map of field IDs, to values, that defines the entries settings |
$time | ?TIME | Null | N/A | N/A | The time the entry was added (null: now) |
$submitter | ?MEMBER | Null | N/A | N/A | The entries submitter (null: current user) |
$edit_date | ?TIME | Null | N/A | N/A | The edit time (null: never) |
$views | integer | 0 | N/A | N/A | The number of views |
$id | ?AUTO_LINK | Null | N/A | N/A | Force an ID (null: don't force an ID) |
$meta_keywords | ?SHORT_TEXT | Blank (empty string) | N/A | N/A | Meta keywords for this resource (null: do not edit) (blank: implicit) |
$meta_description | ?LONG_TEXT | Blank (empty string) | N/A | N/A | Meta description for this resource (null: do not edit) (blank: implicit) |
Return
- The ID of the newly added entry
- Type: AUTO_LINK
- Set: N/A
- Range: N/A