Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2368618
ConpherenceThreadMembersPolicyRule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
928 B
Referenced Files
None
Subscribers
None
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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Sep 16, 6:41 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
446798
Default Alt Text
ConpherenceThreadMembersPolicyRule.php (928 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment