item
pb.item(type, ID, [key_value], [value])
Returns a handle to the ProBoards item object with the given ID.
Returns: Object
| null
- If only type and ID are passed in, this function will return a ProBoards item object or null if it
doesn't exist.
Param | Type | Description |
---|---|---|
type | string | The item's type, e.g., thread, post, user, etc. |
ID | string | The item's ID. |
[key_value] | string | The key of the value you want to overwrite. If left out, the value in this item will be returned. |
[value] | string | The value to which you want to set this item. If key is set and this isn't set, this function will overwrite the entire item object. |