Page MenuHomestyx hydra

PhabricatorRepositoryNameTransaction.php
No OneTemporary

PhabricatorRepositoryNameTransaction.php

<?php
final class PhabricatorRepositoryNameTransaction
extends PhabricatorRepositoryTransactionType {
const TRANSACTIONTYPE = 'repo:name';
public function generateOldValue($object) {
return $object->getName();
}
public function applyInternalEffects($object, $value) {
$object->setName($value);
}
public function getTitle() {
return pht(
'%s renamed this repository from %s to %s.',
$this->renderAuthor(),
$this->renderOldValue(),
$this->renderNewValue());
}
public function validateTransactions($object, array $xactions) {
$errors = array();
if ($this->isEmptyTextTransaction($object->getName(), $xactions)) {
$errors[] = $this->newRequiredError(
pht('Repositories must have a name.'));
}
return $errors;
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Dec 1, 1:10 AM (18 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
424622
Default Alt Text
PhabricatorRepositoryNameTransaction.php (804 B)

Event Timeline