_setPublic
Sets a User Filter to Private or Public, affecting whether all users can access it or not.
Parameters
id
The ID of the User Filter.
val
An integer which sets the Public status of the User Filter: 0 => Private 1 => Public
Examples
These examples use a created User Filter which has 105 as it's ID, and change it's name (represented by 'val') to "Test Filter" and "Tested Filter", respectively.
Results
On Success
This result will be given if running the function changes the User Filter's Public status:
This result will be given instead if the User Filter is already set to the Public status requested:
On Failure
If the "id" parameter is less than 1 or does not have a given value:
If the "id" parameter is given a value but it does not match the ID of an existing User Filter:
If the "val" parameter is not set or has a value higher than 1:
Last updated