Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/adapter/HeraldManiphestTaskAdapter.php
Show All 15 Lines | final class HeraldManiphestTaskAdapter extends HeraldAdapter { | ||||
public function getAdapterContentDescription() { | public function getAdapterContentDescription() { | ||||
return pht('React to tasks being created or updated.'); | return pht('React to tasks being created or updated.'); | ||||
} | } | ||||
protected function initializeNewAdapter() { | protected function initializeNewAdapter() { | ||||
$this->task = $this->newObject(); | $this->task = $this->newObject(); | ||||
} | } | ||||
public function supportsApplicationEmail() { | |||||
return true; | |||||
} | |||||
public function getRepetitionOptions() { | public function getRepetitionOptions() { | ||||
return array( | return array( | ||||
HeraldRepetitionPolicyConfig::EVERY, | HeraldRepetitionPolicyConfig::EVERY, | ||||
HeraldRepetitionPolicyConfig::FIRST, | HeraldRepetitionPolicyConfig::FIRST, | ||||
); | ); | ||||
} | } | ||||
public function supportsRuleType($rule_type) { | public function supportsRuleType($rule_type) { | ||||
Show All 35 Lines | public function getFields() { | ||||
return array_merge( | return array_merge( | ||||
array( | array( | ||||
self::FIELD_TITLE, | self::FIELD_TITLE, | ||||
self::FIELD_BODY, | self::FIELD_BODY, | ||||
self::FIELD_AUTHOR, | self::FIELD_AUTHOR, | ||||
self::FIELD_ASSIGNEE, | self::FIELD_ASSIGNEE, | ||||
self::FIELD_TASK_PRIORITY, | self::FIELD_TASK_PRIORITY, | ||||
self::FIELD_TASK_STATUS, | self::FIELD_TASK_STATUS, | ||||
self::FIELD_APPLICATION_EMAIL, | |||||
), | ), | ||||
parent::getFields()); | parent::getFields()); | ||||
} | } | ||||
public function getActions($rule_type) { | public function getActions($rule_type) { | ||||
switch ($rule_type) { | switch ($rule_type) { | ||||
case HeraldRuleTypeConfig::RULE_TYPE_GLOBAL: | case HeraldRuleTypeConfig::RULE_TYPE_GLOBAL: | ||||
return array_merge( | return array_merge( | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |