Warning: Reason support is experimental. We are looking for beta-tester and contributors.

Module Forum

module Forum : sig..end

Author(s): Piero Furiesi, Jaap Boender, Vincent Balat, Boris Yakobowski


Forum related groups

val message_creators : 
  Wiki_types.wiki_arg User_sql.Types.parameterized_group
val message_creators_notmod : 
  Wiki_types.wiki_arg User_sql.Types.parameterized_group
val message_moderators : 
  Wiki_types.wiki_arg User_sql.Types.parameterized_group
val message_deletors : 
  Wiki_types.wiki_arg User_sql.Types.parameterized_group
val message_deletors_if_creator : 
  Wiki_types.wiki_arg User_sql.Types.parameterized_group
val message_modifiers : 
  Wiki_types.wiki_arg User_sql.Types.parameterized_group
val message_modifiers_if_creator : 
  Wiki_types.wiki_arg User_sql.Types.parameterized_group
val moderated_message_readers : 
  Wiki_types.wiki_arg User_sql.Types.parameterized_group
val message_readers_evennotmoderated : 
  Wiki_types.wiki_arg User_sql.Types.parameterized_group
val creators : Forum_types.forum_arg User_sql.Types.parameterized_group
val creators_notmod : 
  Forum_types.forum_arg User_sql.Types.parameterized_group
val moderators : Forum_types.forum_arg User_sql.Types.parameterized_group
val deletors : Forum_types.forum_arg User_sql.Types.parameterized_group
val deletors_if_creator : 
  Forum_types.forum_arg User_sql.Types.parameterized_group
val modifiers : Forum_types.forum_arg User_sql.Types.parameterized_group
val modifiers_if_creator : 
  Forum_types.forum_arg User_sql.Types.parameterized_group
val moderated_readers : 
  Forum_types.forum_arg User_sql.Types.parameterized_group
val readers : Forum_types.forum_arg User_sql.Types.parameterized_group
val forum_admin : Forum_types.forum_arg User_sql.Types.parameterized_group
val forum_visible : 
  Forum_types.forum_arg User_sql.Types.parameterized_group
val forum_creators : User_sql.Types.user
val thread_comments_creators : 
  Forum_types.message_arg User_sql.Types.parameterized_group
val thread_comments_creators_notmod : 
  Forum_types.message_arg User_sql.Types.parameterized_group
val thread_moderated_readers : 
  Forum_types.message_arg User_sql.Types.parameterized_group
val thread_readers_evennotmoderated : 
  Forum_types.message_arg User_sql.Types.parameterized_group

Forum creation

val create_forum : 
  wiki_model:Wiki_types.wiki_model ->
  title_syntax:Html5_types.phrasing Eliom_content.Html5.F.elt list
   Wiki_types.content_type ->
  title:string ->
  descr:string ->
  ?arborescent:bool -> unit -> Forum_types.forum_info Lwt.t

Creates a new forum or returns its id without modification if it already exists.

Session data

type role = {
  message_creators: bool Lwt.t Lazy.t;  message_creators_notmod: bool Lwt.t Lazy.t;  message_moderators: bool Lwt.t Lazy.t;  message_deletors: bool Lwt.t Lazy.t;  message_deletors_if_creator: bool Lwt.t Lazy.t;  message_modifiers: bool Lwt.t Lazy.t;  message_modifiers_if_creator: bool Lwt.t Lazy.t;  moderated_message_readers: bool Lwt.t Lazy.t;  message_readers_evennotmoderated: bool Lwt.t Lazy.t;  comment_creators: bool Lwt.t Lazy.t;  comment_creators_notmod: bool Lwt.t Lazy.t;  comment_moderators: bool Lwt.t Lazy.t;  comment_deletors: bool Lwt.t Lazy.t;  comment_deletors_if_creator: bool Lwt.t Lazy.t;  comment_modifiers: bool Lwt.t Lazy.t;  comment_modifiers_if_creator: bool Lwt.t Lazy.t;  moderated_comment_readers: bool Lwt.t Lazy.t;  comment_readers_evennotmoderated: bool Lwt.t Lazy.t;  creators: bool Lwt.t Lazy.t;  creators_notmod: bool Lwt.t Lazy.t;  moderators: bool Lwt.t Lazy.t;  deletors: bool Lwt.t Lazy.t;  deletors_if_creator: bool Lwt.t Lazy.t;  modifiers: bool Lwt.t Lazy.t;  modifiers_if_creator: bool Lwt.t Lazy.t;  moderated_readers: bool Lwt.t Lazy.t;  readers: bool Lwt.t Lazy.t;  forum_admin: bool Lwt.t Lazy.t;}
val get_role : Forum_types.forum -> role Lwt.t
type forum_action_info =  | Preview of ((Forum_types.forum * Forum_types.message option) * string) | Msg_creation_not_allowed of 
    (Forum_types.forum * Forum_types.message option)

...

Eliom related values

val eliom_forum : 
  string ->
  (Forum_types.forum, [ `WithoutSuffix ],
   [ `One of Forum_types.forum ] Eliom_parameter.param_name)
  Eliom_parameter.params_type

Eliom parameter type for forums

val eliom_message : 
  string ->
  (Forum_types.message, [ `WithoutSuffix ],
   [ `One of Forum_types.message ] Eliom_parameter.param_name)
  Eliom_parameter.params_type

Eliom parameter type for messages

val eliom_forum_input : 
  ?a:Html5_types.input_attrib Eliom_content.Html5.F.attrib list ->
  input_type:[< `Hidden | `Password | `Submit | `Text ] ->
  ?name:[< Forum_types.forum Eliom_parameter.setoneradio ]
   Eliom_parameter.param_name ->
  ?value:Forum_types.forum ->
  unit -> [> Html5_types.input ] Eliom_content.Html5.F.elt

Eliom input field for forums

val eliom_message_input : 
  ?a:Html5_types.input_attrib Eliom_content.Html5.F.attrib list ->
  input_type:[< `Hidden | `Password | `Submit | `Text ] ->
  ?name:[< Forum_types.message Eliom_parameter.setoneradio ]
   Eliom_parameter.param_name ->
  ?value:Forum_types.message ->
  unit -> [> Html5_types.input ] Eliom_content.Html5.F.elt

Eliom input field for messages

val eliom_message_button : 
  ?a:Html5_types.button_attrib Eliom_content.Html5.F.attrib list ->
  name:[< Forum_types.message Eliom_parameter.setone ]
   Eliom_parameter.param_name ->
  value:Forum_types.message ->
  Html5_types.button_content Eliom_content.Html5.F.elt list ->
  [> Html5_types.button ] Eliom_content.Html5.F.elt

Eliom button for messages

...

class wiki_rights :  Wiki_types.wiki_rights