All Data Structures Functions Variables Pages
Static Public Member Functions | Static Protected Member Functions
ConversationParticipantsUtil Class Reference

Static Public Member Functions

static isCurrentUserAParticipant (Conversation $model)
 
static isUserAParticipant (Conversation $model, User $user)
 
static resolveConversationHasManyParticipantsFromPost (Conversation $conversation, $postData, $explicitReadWriteModelPermissions)
 
static resolveEmailInvitesByPeople ($conversation, $people)
 
static sendEmailInviteToParticipant (Conversation $conversation, $person)
 
static getUrlToConversationDetailAndRelationsView ($id)
 
static getConversationParticipants (Conversation $conversation)
 

Static Protected Member Functions

static castDownItem (Item $item)
 
static makeConversationParticipantByPerson ($personOrUserModel)
 
static getParticipantInviteEmailTextContent (Conversation $conversation)
 
static getParticipantInviteEmailHtmlContent (Conversation $conversation)
 

Detailed Description

Helper class for conversation participant logic.

Definition at line 40 of file ConversationParticipantsUtil.php.

Member Function Documentation

static isCurrentUserAParticipant ( Conversation  $model)
static

Resolved by current user. If the current user cannot access the model, the return false.

Parameters
Conversation$model
Returns
bool

Definition at line 47 of file ConversationParticipantsUtil.php.

static isUserAParticipant ( Conversation  $model,
User  $user 
)
static

Given a Conversation and User, determine if the user is already a conversationParticipant.

Parameters
Conversation$model
User$user
Returns
boolean

Definition at line 65 of file ConversationParticipantsUtil.php.

static resolveConversationHasManyParticipantsFromPost ( Conversation  $conversation,
  $postData,
  $explicitReadWriteModelPermissions 
)
static

Based on the post data, resolve the conversation participants. While this is being resolved also resolve the correct read/write permissions.

Parameters
Conversation$conversation
array$postData
object$explicitReadWriteModelPermissions- ExplicitReadWriteModelPermissions model
Returns
Array of persons who have been added as participants

Definition at line 88 of file ConversationParticipantsUtil.php.

static resolveEmailInvitesByPeople (   $conversation,
  $people 
)
static
Parameters
Conversation$conversation
array$people

Definition at line 150 of file ConversationParticipantsUtil.php.

static sendEmailInviteToParticipant ( Conversation  $conversation,
  $person 
)
static
Parameters
Conversation$conversation
$person

Definition at line 204 of file ConversationParticipantsUtil.php.

static getUrlToConversationDetailAndRelationsView (   $id)
static
Parameters
int$id
Returns
mixed

Definition at line 284 of file ConversationParticipantsUtil.php.

static getConversationParticipants ( Conversation  $conversation)
static
Parameters
Conversation$conversation
Returns
array

Definition at line 294 of file ConversationParticipantsUtil.php.


The documentation for this class was generated from the following file:
Generated on Sun Jan 26 2020 07:10:30