Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92747336
ConpherenceThreadMembersPolicyRule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 23, 09:36
Size
1010 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 09:36 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22504799
Attached To
rPH Phabricator
ConpherenceThreadMembersPolicyRule.php
View Options
<?php
final
class
ConpherenceThreadMembersPolicyRule
extends
PhabricatorPolicyRule
{
public
function
getObjectPolicyKey
()
{
return
'conpherence.members'
;
}
public
function
getObjectPolicyName
()
{
return
pht
(
'Room Participants'
);
}
public
function
getPolicyExplanation
()
{
return
pht
(
'Participants in this room can take this action.'
);
}
public
function
getRuleDescription
()
{
return
pht
(
'room participants'
);
}
public
function
getObjectPolicyIcon
()
{
return
'fa-comments'
;
}
public
function
canApplyToObject
(
PhabricatorPolicyInterface
$object
)
{
return
(
$object
instanceof
ConpherenceThread
);
}
public
function
applyRule
(
PhabricatorUser
$viewer
,
$value
,
PhabricatorPolicyInterface
$object
)
{
$viewer_phid
=
$viewer
->
getPHID
();
if
(!
$viewer_phid
)
{
return
false
;
}
return
(
bool
)
$object
->
getParticipantIfExists
(
$viewer_phid
);
}
public
function
getValueControlType
()
{
return
self
::
CONTROL_TYPE_NONE
;
}
}
Event Timeline
Log In to Comment