Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96321519
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
Wed, Dec 25, 05:57
Size
1010 B
Mime Type
text/x-php
Expires
Fri, Dec 27, 05:57 (2 d)
Engine
blob
Format
Raw Data
Handle
23148128
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