- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::db::chat_transcript
::xo::db::chat_transcript create ...
Defined in
Class Relations
::xo::db::Class create ::xo::db::chat_transcript \ -superclass ::xo::db::ObjectMethods (to be applied on instances)
save_new (scripted, public)
<instance of xo::db::chat_transcript> save_new args [ args... ]Save a new transcript, making sure its creator is granted the necessary operative privileges.
- Parameters:
- args (required)
- Returns:
- new transcript id
- Testcases:
- No testcase defined.
if {![info exists :context_id]} { set :context_id ${:package_id} } ::xo::dc transaction { set transcript_id [next] foreach privilege {edit view delete} { permission::grant -party_id ${:creation_user} -object_id ${:transcript_id} -privilege chat_transcript_${privilege} } } return $transcript_id
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables