Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
727 B · 31 lines
PHP
1234567891011121314151617181920212223242526272829303132<?php
abstract class PhabricatorExportEngineExtension extends Phobject {
private $viewer;
final public function getExtensionKey() { return $this->getPhobjectClassConstant('EXTENSIONKEY'); }
final public function setViewer($viewer) { $this->viewer = $viewer; return $this; }
final public function getViewer() { return $this->viewer; }
abstract public function supportsObject($object); abstract public function newExportFields(); abstract public function newExportData(array $objects);
final public static function getAllExtensions() { return id(new PhutilClassMapQuery()) ->setAncestorClass(self::class) ->setUniqueMethod('getExtensionKey') ->execute(); }
}