Page MenuHomePhorge

ManiphestTaskAssignSelfHeraldAction.php
No OneTemporary

Size
710 B
Referenced Files
None
Subscribers
None

ManiphestTaskAssignSelfHeraldAction.php

<?php
final class ManiphestTaskAssignSelfHeraldAction
extends ManiphestTaskAssignHeraldAction {
const ACTIONCONST = 'maniphest.assign.self';
public function getHeraldActionName() {
return pht('Assign task to me');
}
public function supportsRuleType($rule_type) {
return ($rule_type == HeraldRuleTypeConfig::RULE_TYPE_PERSONAL);
}
public function applyEffect($object, HeraldEffect $effect) {
$phid = $effect->getRule()->getAuthorPHID();
return $this->applyAssign(array($phid));
}
public function getHeraldActionStandardType() {
return self::STANDARD_NONE;
}
public function renderActionDescription($value) {
return pht('Assign task to rule author.');
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, May 12, 6:19 PM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
98278
Default Alt Text
ManiphestTaskAssignSelfHeraldAction.php (710 B)

Event Timeline