Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122270310
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
Thu, Jul 17, 00:03
Size
928 B
Mime Type
text/x-php
Expires
Sat, Jul 19, 00:03 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27439992
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
(
'Thread Members'
);
}
public
function
getPolicyExplanation
()
{
return
pht
(
'Members of this thread can take this action.'
);
}
public
function
getRuleDescription
()
{
return
pht
(
'thread members'
);
}
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