setKey('author') ->setLabel(pht('Author')), id(new PhabricatorPHIDMailStamp()) ->setKey('task-owner') ->setLabel(pht('Task Owner')), id(new PhabricatorBoolMailStamp()) ->setKey('task-unassigned') ->setLabel(pht('Task Unassigned')), id(new PhabricatorStringMailStamp()) ->setKey('task-priority') ->setLabel(pht('Task Priority')), id(new PhabricatorStringMailStamp()) ->setKey('task-status') ->setLabel(pht('Task Status')), id(new PhabricatorStringMailStamp()) ->setKey('subtype') ->setLabel(pht('Subtype')), ); } public function newMailStamps($object, array $xactions) { $editor = $this->getEditor(); $viewer = $this->getViewer(); $this->getMailStamp('author') ->setValue($object->getAuthorPHID()); $this->getMailStamp('task-owner') ->setValue($object->getOwnerPHID()); $this->getMailStamp('task-unassigned') ->setValue(!$object->getOwnerPHID()); $this->getMailStamp('task-priority') ->setValue($object->getPriority()); $this->getMailStamp('task-status') ->setValue($object->getStatus()); $this->getMailStamp('subtype') ->setValue($object->getSubtype()); } }