Differential D16111 Diff 38770 src/applications/transactions/xaction/PhabricatorCoreCreateTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/xaction/PhabricatorCoreCreateTransaction.php
- This file was added.
<?php | |||||
final class PhabricatorCoreCreateTransaction | |||||
extends PhabricatorCoreTransactionType { | |||||
const TRANSACTIONTYPE = 'core:create'; | |||||
public function generateOldValue($object) { | |||||
return null; | |||||
} | |||||
public function getTitle() { | |||||
$editor = $this->getObject()->getApplicationTransactionEditor(); | |||||
$author = $this->renderAuthor(); | |||||
$object = $this->renderObject(); | |||||
return $editor->getCreateObjectTitle($author, $object); | |||||
} | |||||
public function getTitleForFeed() { | |||||
$editor = $this->getObject()->getApplicationTransactionEditor(); | |||||
$author = $this->renderAuthor(); | |||||
$object = $this->renderObject(); | |||||
return $editor->getCreateObjectTitleForFeed($author, $object); | |||||
} | |||||
} |