Function __global->cns_may_post_topic
Definitions
sources/cns_topics.php
- Find whether a member may post a topic in a certain forum.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $forum_id | ?AUTO_LINK | No | No | required parameter | N/A | N/A | The forum the topic would be in (null: private topics) |
| $member_id | ?MEMBER | No | No | Null | N/A | N/A | The member (null: current member) |
Returns
- The answer
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find whether a member may post a topic in a certain forum.
*
* @param ?AUTO_LINK $forum_id The forum the topic would be in (null: private topics)
* @param ?MEMBER $member_id The member (null: current member)
* @return boolean The answer
*/
function cns_may_post_topic(?int $forum_id, ?int $member_id = null) : bool
* Find whether a member may post a topic in a certain forum.
*
* @param ?AUTO_LINK $forum_id The forum the topic would be in (null: private topics)
* @param ?MEMBER $member_id The member (null: current member)
* @return boolean The answer
*/
function cns_may_post_topic(?int $forum_id, ?int $member_id = null) : bool
