Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/transactions/engineextension/PhabricatorEditorExtension.php b/src/applications/transactions/engineextension/PhabricatorEditorExtension.php
index 6ffac522c2..643ecd0350 100644
--- a/src/applications/transactions/engineextension/PhabricatorEditorExtension.php
+++ b/src/applications/transactions/engineextension/PhabricatorEditorExtension.php
@@ -1,83 +1,69 @@
<?php
abstract class PhabricatorEditorExtension
extends Phobject {
private $viewer;
private $editor;
private $object;
final public function getExtensionKey() {
return $this->getPhobjectClassConstant('EXTENSIONKEY');
}
final public function setEditor(
PhabricatorApplicationTransactionEditor $editor) {
$this->editor = $editor;
return $this;
}
final public function getEditor() {
return $this->editor;
}
final public function setViewer(PhabricatorUser $viewer) {
$this->viewer = $viewer;
return $this;
}
final public function getViewer() {
return $this->viewer;
}
final public function setObject(
PhabricatorApplicationTransactionInterface $object) {
$this->object = $object;
return $this;
}
final public static function getAllExtensions() {
return id(new PhutilClassMapQuery())
->setAncestorClass(__CLASS__)
->setUniqueMethod('getExtensionKey')
->execute();
}
abstract public function getExtensionName();
public function supportsObject(
PhabricatorApplicationTransactionEditor $editor,
PhabricatorApplicationTransactionInterface $object) {
return true;
}
public function validateTransactions($object, array $xactions) {
return array();
}
final protected function newTransactionError(
PhabricatorApplicationTransaction $xaction,
$title,
$message) {
return new PhabricatorApplicationTransactionValidationError(
$xaction->getTransactionType(),
$title,
$message,
$xaction);
}
- final protected function newRequiredTransasctionError(
- PhabricatorApplicationTransaction $xaction,
- $message) {
- return $this->newError($xaction, pht('Required'), $message)
- ->setIsMissingFieldError(true);
- }
-
- final protected function newInvalidTransactionError(
- PhabricatorApplicationTransaction $xaction,
- $message) {
- return $this->newTransactionError($xaction, pht('Invalid'), $message);
- }
-
-
}

File Metadata

Mime Type
text/x-diff
Expires
Sun, Nov 24, 11:50 PM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1075
Default Alt Text
(2 KB)

Event Timeline