mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-13 10:22:42 +01:00
7b09f5698f
Summary: Ref T9275. Swaps Calendar over to modular transactions. Theoretically, this has almost no effect on anything. Ref T10633. I didn't actually do anything here yet, but this gets us ready to put timestamps in email. Test Plan: Created and edited a bunch of events, nothing seemed catastrophically broken. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9275, T10633 Differential Revision: https://secure.phabricator.com/D16286
25 lines
550 B
PHP
25 lines
550 B
PHP
<?php
|
|
|
|
final class PhabricatorCalendarEventAcceptTransaction
|
|
extends PhabricatorCalendarEventReplyTransaction {
|
|
|
|
const TRANSACTIONTYPE = 'calendar.accept';
|
|
|
|
public function generateNewValue($object, $value) {
|
|
return PhabricatorCalendarEventInvitee::STATUS_ATTENDING;
|
|
}
|
|
|
|
public function getTitle() {
|
|
return pht(
|
|
'%s is attending this event.',
|
|
$this->renderAuthor());
|
|
}
|
|
|
|
public function getTitleForFeed() {
|
|
return pht(
|
|
'%s is attending %s.',
|
|
$this->renderAuthor(),
|
|
$this->renderObject());
|
|
}
|
|
|
|
}
|