init__ocf_posts (line 24)
Standard code module initialisation function.
void
init__ocf_posts
()
ocf_may_delete_post_by (line 84)
Find whether a member may delete the detailed post.
boolean
ocf_may_delete_post_by
(MEMBER $resource_owner, AUTO_LINK $forum_id, [?MEMBER $member_id = NULL])
-
MEMBER
$resource_owner: The owner of the post.
-
AUTO_LINK
$forum_id: The forum the post is in.
-
?MEMBER
$member_id: The member (NULL: current member).
ocf_may_edit_post_by (line 64)
Find whether a member may edit the detailed post.
boolean
ocf_may_edit_post_by
(MEMBER $resource_owner, AUTO_LINK $forum_id, [?MEMBER $member_id = NULL])
-
MEMBER
$resource_owner: The owner of the post.
-
AUTO_LINK
$forum_id: The forum the post is in.
-
?MEMBER
$member_id: The member (NULL: current member).
ocf_may_post_in_topic (line 39)
Find whether a member may post in a certain topic.
boolean
ocf_may_post_in_topic
(AUTO_LINK $forum_id, AUTO_LINK $topic_id, [?MEMBER $last_member_id = NULL], [?MEMBER $member_id = NULL])
-
AUTO_LINK
$forum_id: The forum ID of the forum the topic is in.
-
AUTO_LINK
$topic_id: The topic ID is in.
-
?MEMBER
$last_member_id: The last poster in the topic (NULL: do not check for double posting).
-
?MEMBER
$member_id: The member (NULL: current member).