Page MenuHomePhorge

ConpherenceThreadMembersPolicyRule.php
No OneTemporary

Size
1010 B
Referenced Files
None
Subscribers
None

ConpherenceThreadMembersPolicyRule.php

<?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;
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, May 13, 1:17 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
124370
Default Alt Text
ConpherenceThreadMembersPolicyRule.php (1010 B)

Event Timeline