Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F570420
ConpherenceParticipant.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ConpherenceParticipant.php
View Options
<?php
final
class
ConpherenceParticipant
extends
ConpherenceDAO
{
protected
$participantPHID
;
protected
$conpherencePHID
;
protected
$seenMessageCount
;
protected
$settings
=
array
();
protected
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_SERIALIZATION
=>
array
(
'settings'
=>
self
::
SERIALIZATION_JSON
,
),
self
::
CONFIG_COLUMN_SCHEMA
=>
array
(
'seenMessageCount'
=>
'uint64'
,
),
self
::
CONFIG_KEY_SCHEMA
=>
array
(
'conpherencePHID'
=>
array
(
'columns'
=>
array
(
'conpherencePHID'
,
'participantPHID'
),
'unique'
=>
true
,
),
'key_thread'
=>
array
(
'columns'
=>
array
(
'participantPHID'
,
'conpherencePHID'
),
),
),
)
+
parent
::
getConfiguration
();
}
public
function
getSettings
()
{
return
nonempty
(
$this
->
settings
,
array
());
}
public
function
markUpToDate
(
ConpherenceThread
$conpherence
)
{
if
(!
$this
->
isUpToDate
(
$conpherence
))
{
$this
->
setSeenMessageCount
(
$conpherence
->
getMessageCount
());
$this
->
save
();
PhabricatorUserCache
::
clearCache
(
PhabricatorUserMessageCountCacheType
::
KEY_COUNT
,
$this
->
getParticipantPHID
());
}
return
$this
;
}
public
function
isUpToDate
(
ConpherenceThread
$conpherence
)
{
return
(
$this
->
getSeenMessageCount
()
==
$conpherence
->
getMessageCount
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 3:28 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
100652
Default Alt Text
ConpherenceParticipant.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment