mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-14 02:42:40 +01:00
26 lines
550 B
PHP
26 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());
|
||
|
}
|
||
|
|
||
|
}
|