Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

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 192 of file ConversationParticipantsUtil.php.

static getUrlToConversationDetailAndRelationsView ( id  )  [static]
Parameters:
int $id
Returns:
mixed

Definition at line 275 of file ConversationParticipantsUtil.php.

static getConversationParticipants ( Conversation conversation  )  [static]
Parameters:
Conversation $conversation
Returns:
array

Definition at line 285 of file ConversationParticipantsUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Tue Jan 22 07:10:22 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8